UNPKG

@duoduo-oba/ng-devui

Version:

DevUI components based on Angular

148 lines (142 loc) 4.75 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core')) : typeof define === 'function' && define.amd ? define('ng-devui/window-ref', ['exports', '@angular/core'], factory) : (global = global || self, factory((global['ng-devui'] = global['ng-devui'] || {}, global['ng-devui']['window-ref'] = {}), global.ng.core)); }(this, (function (exports, core) { 'use strict'; /** * @fileoverview added by tsickle * Generated from: document-ref.service.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var DocumentRef = /** @class */ (function () { function DocumentRef() { } Object.defineProperty(DocumentRef.prototype, "body", { get: /** * @return {?} */ function () { return document.body; }, enumerable: true, configurable: true }); Object.defineProperty(DocumentRef.prototype, "documentElement", { get: /** * @return {?} */ function () { return document.documentElement; }, enumerable: true, configurable: true }); DocumentRef.decorators = [ { type: core.Injectable } ]; /** @nocollapse */ DocumentRef.ctorParameters = function () { return []; }; return DocumentRef; }()); /** * @fileoverview added by tsickle * Generated from: window-ref.service.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var WindowRef = /** @class */ (function () { function WindowRef(documentRef) { this.documentRef = documentRef; } Object.defineProperty(WindowRef.prototype, "document", { get: /** * @return {?} */ function () { return this.documentRef; }, enumerable: true, configurable: true }); Object.defineProperty(WindowRef.prototype, "pageXOffset", { get: /** * @return {?} */ function () { return window.pageXOffset; }, enumerable: true, configurable: true }); Object.defineProperty(WindowRef.prototype, "pageYOffset", { get: /** * @return {?} */ function () { return window.pageYOffset; }, enumerable: true, configurable: true }); Object.defineProperty(WindowRef.prototype, "innerHeight", { get: /** * @return {?} */ function () { return window.innerHeight; }, enumerable: true, configurable: true }); Object.defineProperty(WindowRef.prototype, "innerWidth", { get: /** * @return {?} */ function () { return window.innerWidth; }, enumerable: true, configurable: true }); /** * @param {?} element * @return {?} */ WindowRef.prototype.getComputedStyle = /** * @param {?} element * @return {?} */ function (element) { return window.getComputedStyle(element); }; /** * @param {?} elementRef * @return {?} */ WindowRef.prototype.getBoundingClientRect = /** * @param {?} elementRef * @return {?} */ function (elementRef) { return elementRef.nativeElement && elementRef.nativeElement.getBoundingClientRect(); }; WindowRef.decorators = [ { type: core.Injectable } ]; /** @nocollapse */ WindowRef.ctorParameters = function () { return [ { type: DocumentRef } ]; }; return WindowRef; }()); if (false) { /** * @type {?} * @private */ WindowRef.prototype.documentRef; } exports.DocumentRef = DocumentRef; exports.WindowRef = WindowRef; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=ng-devui-window-ref.umd.js.map