ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
55 lines (54 loc) • 1.94 kB
TypeScript
import { BeanStub } from "../context/beanStub";
import { ControllersService } from "../controllersService";
export declare class GridBodyScrollFeature extends BeanStub {
controllersService: ControllersService;
private animationFrameService;
private columnApi;
private gridApi;
private paginationProxy;
private rowModel;
private heightScaler;
private rowRenderer;
private columnController;
private enableRtl;
private lastHorizontalScrollElement;
private eBodyViewport;
private scrollLeft;
private nextScrollTop;
private scrollTop;
private readonly resetLastHorizontalScrollElementDebounced;
private centerRowContainerCon;
constructor(eBodyViewport: HTMLElement);
private postConstruct;
private addScrollListener;
private onDisplayedColumnsWidthChanged;
horizontallyScrollHeaderCenterAndFloatingCenter(scrollLeft?: number): void;
private isControllingScroll;
private onFakeHorizontalScroll;
private onCenterViewportScroll;
private onBodyHorizontalScroll;
private onVerticalScroll;
private resetLastHorizontalScrollElement;
private doHorizontalScroll;
private shouldBlockScrollUpdate;
private redrawRowsAfterScroll;
private onHorizontalViewportChanged;
checkScrollLeft(): void;
executeAnimationFrameScroll(): boolean;
setHorizontalScrollPosition(hScrollPosition: number): void;
setVerticalScrollPosition(vScrollPosition: number): void;
getVScrollPosition(): {
top: number;
bottom: number;
};
getHScrollPosition(): {
left: number;
right: number;
};
isHorizontalScrollShowing(): boolean;
scrollHorizontally(pixels: number): number;
scrollToTop(): void;
ensureNodeVisible(comparator: any, position?: string | null): void;
ensureIndexVisible(index: any, position?: string | null): void;
ensureColumnVisible(key: any): void;
}