Buckets:
| /** | |
| * Converts a rem CSS value to pixels based on the document root font size. | |
| */ | |
| export function remToPx(rem: string): number { | |
| const val = parseFloat(rem); | |
| const fontSize = parseFloat(getComputedStyle(document.documentElement).fontSize); | |
| return val * fontSize; | |
| } | |
Xet Storage Details
- Size:
- 271 Bytes
- Xet hash:
- db15bc92f10aa48296e1a7c3077ace05a3de350b12abd17821b4395093074173
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.