@duoduo-oba/ng-devui
Version:
DevUI components based on Angular
2 lines • 1.76 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("ng-devui/window-ref",["exports","@angular/core"],t):t(((e=e||self)["ng-devui"]=e["ng-devui"]||{},e["ng-devui"]["window-ref"]={}),e.ng.core)}(this,(function(e,t){"use strict";var n=function(){function e(){}return Object.defineProperty(e.prototype,"body",{get:function(){return document.body},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentElement",{get:function(){return document.documentElement},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}(),r=function(){function e(e){this.documentRef=e}return Object.defineProperty(e.prototype,"document",{get:function(){return this.documentRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageXOffset",{get:function(){return window.pageXOffset},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageYOffset",{get:function(){return window.pageYOffset},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerHeight",{get:function(){return window.innerHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"innerWidth",{get:function(){return window.innerWidth},enumerable:!0,configurable:!0}),e.prototype.getComputedStyle=function(e){return window.getComputedStyle(e)},e.prototype.getBoundingClientRect=function(e){return e.nativeElement&&e.nativeElement.getBoundingClientRect()},e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[{type:n}]},e}();e.DocumentRef=n,e.WindowRef=r,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ng-devui-window-ref.umd.min.js.map