File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 1- import { Gravity } from '@imagemagick/magick-wasm' ;
2-
31enum BadgeGravity {
42 Northwest = 'northwest' ,
53 North = 'north' ,
@@ -9,25 +7,6 @@ enum BadgeGravity {
97 Southeast = 'southeast' ,
108}
119
12- export function getGravityFromBadgeGravity (
13- badgeGravity : BadgeGravity ,
14- ) : Gravity {
15- switch ( badgeGravity ) {
16- case BadgeGravity . Northwest :
17- return Gravity . Northwest ;
18- case BadgeGravity . North :
19- return Gravity . North ;
20- case BadgeGravity . Northeast :
21- return Gravity . Northeast ;
22- case BadgeGravity . Southwest :
23- return Gravity . Southwest ;
24- case BadgeGravity . South :
25- return Gravity . South ;
26- case BadgeGravity . Southeast :
27- return Gravity . Southeast ;
28- }
29- }
30-
3110export function getBadgeGravityFromString ( input : string ) : BadgeGravity {
3211 switch ( input . toLowerCase ( ) ) {
3312 case 'northwest' :
You can’t perform that action at this time.
0 commit comments