happy-dom
Version:
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
17 lines • 591 B
TypeScript
import EventTarget from '../event/EventTarget.js';
import type Event from '../event/Event.js';
/**
* The Screen interface represents a screen, usually the one on which the current window is being rendered.
*
* @see https://developer.mozilla.org/en-US/docs/Web/API/Screen
*/
export default class Screen extends EventTarget {
readonly width = 1024;
readonly height = 768;
readonly availWidth = 1024;
readonly availHeight = 768;
readonly colorDepth = 24;
readonly pixelDepth = 24;
onchange: ((event: Event) => void) | null;
}
//# sourceMappingURL=Screen.d.ts.map