UNPKG

780 BTypeScriptView Raw
1import * as i0 from "@angular/core";
2export interface ItemsRangeResult {
3 scrollHeight: number;
4 topPadding: number;
5 start: number;
6 end: number;
7}
8export interface PanelDimensions {
9 itemHeight: number;
10 panelHeight: number;
11 itemsPerViewport: number;
12}
13export declare class NgDropdownPanelService {
14 private _dimensions;
15 get dimensions(): PanelDimensions;
16 calculateItems(scrollPos: number, itemsLength: number, buffer: number): ItemsRangeResult;
17 setDimensions(itemHeight: number, panelHeight: number): void;
18 getScrollTo(itemTop: number, itemHeight: number, lastScroll: number): number;
19 static ɵfac: i0.ɵɵFactoryDeclaration<NgDropdownPanelService, never>;
20 static ɵprov: i0.ɵɵInjectableDeclaration<NgDropdownPanelService>;
21}