jsdom
Version:
A JavaScript implementation of many web standards
15 lines (11 loc) • 484 B
JavaScript
;
const { screen } = require("./environment");
// https://drafts.csswg.org/cssom-view-1/#the-screen-interface
class ScreenImpl {}
ScreenImpl.prototype.availWidth = screen.availWidth;
ScreenImpl.prototype.availHeight = screen.availHeight;
ScreenImpl.prototype.width = screen.width;
ScreenImpl.prototype.height = screen.height;
ScreenImpl.prototype.colorDepth = screen.colorDepth;
ScreenImpl.prototype.pixelDepth = screen.pixelDepth;
exports.implementation = ScreenImpl;