import { AfterViewInit, OnDestroy, EventEmitter, Renderer2, ElementRef, NgZone, OnChanges, SimpleChanges } from '@angular/core'; export declare class AtScrollbarComponent implements AfterViewInit, OnDestroy, OnChanges { private zone; private renderer; private document; private _thumbSizeY; private _thumbSizeX; private _trackTopMax; private _trackLeftMax; private _scrollLeftMax; private _scrollTopMax; private _naturalThumbSizeY; private _naturalThumbSizeX; private _prevPageY; private _prevPageX; private _currXPos; private _currYPos; private minThumbSize; private scrollSub$; private barXSub$; private barYSub$; private thumbXSub$; private thumbYSub$; private observer; barX: HTMLElement; barY: HTMLElement; thumbX: HTMLElement; thumbY: HTMLElement; view: HTMLElement; barXRef: ElementRef; barYRef: ElementRef; thumbXRef: ElementRef; thumbYRef: ElementRef; viewRef: ElementRef; render: boolean; autoUpdate: boolean; autoHide: boolean; trackX: boolean; trackY: boolean; viewClass: string; barClass: string; thumbClass: string; scrollState: EventEmitter; constructor(zone: NgZone, renderer: Renderer2, document: any); ngAfterViewInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; init(): void; /** * Scroll horizontally * @param to * @param duration */ scrollXTo(to: number, duration?: number): void; /** * Scroll vertically * @param to * @param duration */ scrollYTo(to: number, duration?: number): void; /** * Update thumbnails */ update(): void; /** * Scroll Worker * @param e - Mouse Event */ private scrollWorker(e); /** * Horizontal scrollbar click worker * @param e - Mouse Event */ private barXWorker(e); /** * Vertical scrollbar click worker * @param e - Mouse Event */ private barYWorker(e); /** * Horizontal thumb worker * @param e - Mouse Event */ private thumbXWorker(e); /** * Vertical thumb worker * @param e - Mouse Event */ private thumbYWorker(e); /** * Calculate Thumb X Size */ private calculateThumbXSize(); /** * Calculate Thumb Y Size */ private calculateThumbYSize(); /** * Get scrollbar thumb size * @param naturalThumbSize * @param scrollMax */ private scrollBoundaries(naturalThumbSize, scrollMax); /** * Set horizontal scrollbar thumb style * @param x * @param width */ private setThumbXPosition(x, width); /** * Set vertical scrollbar thumb style * @param y * @param height */ private setThumbYPosition(y, height); /** * Hide native scrollbars */ private hideNativeScrollbars(); /** * Get the native scrollbar width */ private getNativeScrollbarWidth(); }