UNPKG

947 BTypeScriptView Raw
1import { NgZone } from '@angular/core';
2import { ViewportRuler } from '@angular/cdk/overlay';
3import { NbPlatform } from '../platform/platform-service';
4import { NbLayoutRulerService } from '../../../services/ruler.service';
5import { NbLayoutScrollService } from '../../../services/scroll.service';
6import * as i0 from "@angular/core";
7export declare class NbViewportRulerAdapter extends ViewportRuler {
8 protected ruler: NbLayoutRulerService;
9 protected scroll: NbLayoutScrollService;
10 constructor(platform: NbPlatform, ngZone: NgZone, ruler: NbLayoutRulerService, scroll: NbLayoutScrollService, document: any);
11 getViewportSize(): Readonly<{
12 width: number;
13 height: number;
14 }>;
15 getViewportScrollPosition(): {
16 left: number;
17 top: number;
18 };
19 static ɵfac: i0.ɵɵFactoryDeclaration<NbViewportRulerAdapter, never>;
20 static ɵprov: i0.ɵɵInjectableDeclaration<NbViewportRulerAdapter>;
21}