Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getWindowRect.js 401B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const constants_1 = require("../constants");
  4. async function getWindowRect() {
  5. const page = this.getPageHandle();
  6. const viewport = await page.viewport() || {};
  7. return Object.assign({ width: constants_1.DEFAULT_WIDTH, height: constants_1.DEFAULT_HEIGHT, x: 0, y: 0 }, viewport);
  8. }
  9. exports.default = getWindowRect;