mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-20 02:21:07 +00:00
Add hidden map
This commit is contained in:
@@ -1,3 +1,15 @@
|
||||
export interface Viewport {
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
|
||||
export function viewport(): Viewport {
|
||||
const width = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
||||
const height = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
||||
|
||||
return { width, height };
|
||||
}
|
||||
|
||||
export function formatNumber(num: number): string {
|
||||
const input = num.toString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user