(value: string)
| 129 | } |
| 130 | |
| 131 | export function parseFontFamily(value: string): Array<string> { |
| 132 | if (!value) { |
| 133 | return []; |
| 134 | } |
| 135 | |
| 136 | return value |
| 137 | .split(',') |
| 138 | .map((v) => (v || '').trim().replace(/['"]+/g, '')) |
| 139 | .filter((v) => !!v); |
| 140 | } |
| 141 | |
| 142 | export function isFontWeightBold(fontWeight: FontWeightType): boolean { |
| 143 | return fontWeight === FontWeight.SEMI_BOLD || fontWeight === FontWeight.BOLD || fontWeight === '700' || fontWeight === FontWeight.EXTRA_BOLD || fontWeight === FontWeight.BLACK; |
no test coverage detected