2019-06-19 05:09:49 +02:00
|
|
|
export default class Screen {
|
|
|
|
/** Document/window width */
|
2020-07-25 10:22:57 +02:00
|
|
|
static get width() {return Math.max(document.documentElement.clientWidth, window.innerWidth || 0);}
|
2019-06-19 05:09:49 +02:00
|
|
|
/** Document/window height */
|
2020-07-25 10:22:57 +02:00
|
|
|
static get height() {return Math.max(document.documentElement.clientHeight, window.innerHeight || 0);}
|
2019-06-19 05:09:49 +02:00
|
|
|
}
|