angular2-advanced-notifications
Version:
UI and native notifications library for Angular
28 lines • 771 B
JavaScript
import { Observable } from 'rxjs/Rx';
var BrowserViewports = (function () {
function BrowserViewports() {
}
/**
* @return {?}
*/
BrowserViewports.getBrowserViewports = function () {
return {
innerHeight: window.innerHeight,
innerWidth: window.innerWidth
};
};
/**
* @return {?}
*/
BrowserViewports.onBrowserViewportsUpdate = function () {
var _this = this;
return Observable.fromEvent(window, 'resize')
.debounceTime(500)
.map(function () {
return _this.getBrowserViewports();
});
};
return BrowserViewports;
}());
export { BrowserViewports };
//# sourceMappingURL=browserViewports.js.map