@@ -43,74 +43,74 @@ export default class CardBuilder {
4343 return result ;
4444 }
4545
46- public title ( _title = "My Tech Stack" ) : CardBuilder {
46+ public title ( _title = "My Tech Stack" ) {
4747 this . card . setTitle ( title . parse ( _title ) ) ;
4848 return this ;
4949 }
5050
51- public lineCount ( _lineCount = "1" ) : CardBuilder {
51+ public lineCount ( _lineCount = "1" ) {
5252 this . card . setLineCount ( lineCount . parse ( Number ( _lineCount ) ) ) ;
5353 return this ;
5454 }
5555
56- public align ( _align = "left" ) : CardBuilder {
56+ public align ( _align = "left" ) {
5757 this . card . setBadgeAlign ( align . parse ( _align ) ) ;
5858 return this ;
5959 }
6060
61- public titleAlign ( _titleAlign = "left" ) : CardBuilder {
61+ public titleAlign ( _titleAlign = "left" ) {
6262 this . card . setTitleAlign ( align . parse ( _titleAlign ) ) ;
6363 return this ;
6464 }
6565
66- public border ( _showBorder = "true" ) : CardBuilder {
66+ public border ( _showBorder = "true" ) {
6767 this . card . setShowBorder (
6868 showBorder . parse ( _showBorder === "false" ? false : true )
6969 ) ;
7070 return this ;
7171 }
7272
73- public hideTitle ( _hideTitle = "false" ) : CardBuilder {
73+ public hideTitle ( _hideTitle = "false" ) {
7474 this . card . setHideTitle ( _hideTitle === "true" ) ;
7575 return this ;
7676 }
7777
78- public borderRadius ( _borderRadius = "4.5" ) : CardBuilder {
78+ public borderRadius ( _borderRadius = "4.5" ) {
7979 this . card . setBorderRadius ( borderRadius . parse ( Number ( _borderRadius ) ) ) ;
8080 return this ;
8181 }
8282
83- public fontWeight ( _fontWeight = "semibold" ) : CardBuilder {
83+ public fontWeight ( _fontWeight = "semibold" ) {
8484 this . card . setFontWeight ( fontWeight . parse ( _fontWeight ) ) ;
8585 return this ;
8686 }
8787
88- public fontSize ( _fontSize = "18" ) : CardBuilder {
88+ public fontSize ( _fontSize = "18" ) {
8989 this . card . setFontSize ( fontSize . parse ( Number ( _fontSize ) ) ) ;
9090 return this ;
9191 }
9292
93- public theme ( _theme = "github" ) : CardBuilder {
93+ public theme ( _theme = "github_dark" ) {
9494 this . card . setTheme ( getThemeByName ( _theme ) ) ;
9595 return this ;
9696 }
9797
98- public family ( _fontFamily = "Segoe UI" ) : CardBuilder {
98+ public family ( _fontFamily = "Segoe UI" ) {
9999 this . card . setFontFamily ( fontFamily . parse ( _fontFamily ) ) ;
100100 return this ;
101101 }
102102
103- public gap ( _gap = "10" ) : CardBuilder {
103+ public gap ( _gap = "10" ) {
104104 this . card . setGap ( gap . parse ( Number ( _gap ) ) ) ;
105105 return this ;
106106 }
107107
108- public lineHeight ( _lh = "7" ) : CardBuilder {
108+ public lineHeight ( _lh = "7" ) {
109109 this . card . setLineHeight ( lineHeight . parse ( Number ( _lh ) ) ) ;
110110 return this ;
111111 }
112112
113- public bgColor ( bgColor = "" ) : CardBuilder {
113+ public bgColor ( bgColor = "" ) {
114114 if ( isHexColor ( bgColor ) ) {
115115 this . card . setTheme ( {
116116 ...this . card . getTheme ( ) ,
@@ -121,7 +121,7 @@ export default class CardBuilder {
121121 return this ;
122122 }
123123
124- public borderColor ( border = "" ) : CardBuilder {
124+ public borderColor ( border = "" ) {
125125 if ( isHexColor ( border ) ) {
126126 this . card . setTheme ( {
127127 ...this . card . getTheme ( ) ,
@@ -132,7 +132,7 @@ export default class CardBuilder {
132132 return this ;
133133 }
134134
135- public badgeColor ( badge = "" ) : CardBuilder {
135+ public badgeColor ( badge = "" ) {
136136 if ( isHexColor ( badge ) ) {
137137 this . card . setTheme ( {
138138 ...this . card . getTheme ( ) ,
@@ -143,7 +143,7 @@ export default class CardBuilder {
143143 return this ;
144144 }
145145
146- public titleColor ( title = "" ) : CardBuilder {
146+ public titleColor ( title = "" ) {
147147 if ( isHexColor ( title ) ) {
148148 this . card . setTheme ( {
149149 ...this . card . getTheme ( ) ,
@@ -154,7 +154,7 @@ export default class CardBuilder {
154154 return this ;
155155 }
156156
157- public hideBackground ( hb = "false" ) : CardBuilder {
157+ public hideBackground ( hb = "false" ) {
158158 if ( hb . toString ( ) === "true" ) {
159159 this . card . setTheme ( {
160160 ...this . card . getTheme ( ) ,
@@ -165,9 +165,7 @@ export default class CardBuilder {
165165 return this ;
166166 }
167167
168- public lines (
169- cb : ( line : number , addBadge : ( b : Badge ) => void ) => void
170- ) : CardBuilder {
168+ public lines ( cb : ( line : number , addBadge : ( b : Badge ) => void ) => void ) {
171169 // for loop from 1 to the line count
172170 // each iteration calls the callback function
173171 for ( let i = 1 ; i <= this . card . getLineCount ( ) ; i ++ ) {
0 commit comments