UNPKG

@duoduo-oba/ng-devui

Version:

DevUI components based on Angular

151 lines (145 loc) 4.12 kB
import { Injectable } from '@angular/core'; /** * @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: 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: Injectable } ]; /** @nocollapse */ WindowRef.ctorParameters = function () { return [ { type: DocumentRef } ]; }; return WindowRef; }()); if (false) { /** * @type {?} * @private */ WindowRef.prototype.documentRef; } /** * @fileoverview added by tsickle * Generated from: public-api.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @fileoverview added by tsickle * Generated from: ng-devui-window-ref.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ export { DocumentRef, WindowRef }; //# sourceMappingURL=ng-devui-window-ref.js.map