rcx-virtual-list
Version:
Maximum performance for extremely large lists.<br/> Flexible, and actively maintained React library that excels with high-performance, feature-rich virtualized lists—including grouping, sticky headers, snapping, animations, and both scroll directions. Wh
40 lines (39 loc) • 1.1 kB
TypeScript
import { IScrollEvent, ScrollDirection } from "../models";
interface IScrollEventParams {
direction: ScrollDirection;
container: HTMLElement;
list: HTMLElement;
delta: number;
scrollDelta: number;
isVertical: boolean;
}
/**
* Scroll event.
* @link https://github.com/DjonnyX/rcx-virtual-list/tree/main/src/lib/src/utils/scrollEvent.ts
* @author Evgenii Grebennikov
* @email djonnyx@gmail.com
*/
export declare class ScrollEvent implements IScrollEvent {
private _direction;
get direction(): ScrollDirection;
private _scrollSize;
get scrollSize(): number;
private _scrollWeight;
get scrollWeight(): number;
private _isVertical;
get isVertical(): boolean;
private _listSize;
get listSize(): number;
private _size;
get size(): number;
private _isStart;
get isStart(): boolean;
private _isEnd;
get isEnd(): boolean;
private _delta;
get delta(): number;
private _scrollDelta;
get scrollDelta(): number;
constructor(params: IScrollEventParams);
}
export {};