ohctechv3/.svn/pristine/1e/1ea016ad92554ce383f75465e93d30bdc03dcb6d.svn-base
2024-10-28 15:03:36 +05:30

27 lines
1.2 KiB
Plaintext

import { CtrlsService } from "../ctrlsService";
import { Component } from "../widgets/component";
import { ScrollVisibleService } from "./scrollVisibleService";
export declare abstract class AbstractFakeScrollComp extends Component {
private readonly direction;
protected readonly eViewport: HTMLElement;
protected readonly eContainer: HTMLElement;
protected readonly scrollVisibleService: ScrollVisibleService;
protected readonly ctrlsService: CtrlsService;
private animationFrameService;
protected invisibleScrollbar: boolean;
protected hideTimeout: number | null;
protected abstract setScrollVisible(): void;
abstract getScrollPosition(): number;
abstract setScrollPosition(value: number): void;
constructor(template: string, direction: 'horizontal' | 'vertical');
protected postConstruct(): void;
protected initialiseInvisibleScrollbar(): void;
protected addActiveListenerToggles(): void;
protected onScrollVisibilityChanged(): void;
protected hideAndShowInvisibleScrollAsNeeded(): void;
protected attemptSettingScrollPosition(value: number): void;
protected getViewport(): HTMLElement;
getContainer(): HTMLElement;
onScrollCallback(fn: () => void): void;
}