Add hidden map

This commit is contained in:
maciejhirsz
2018-07-15 22:50:41 +02:00
parent 071c26ef51
commit 43a87deb9c
8 changed files with 117 additions and 96 deletions
+12
View File
@@ -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();