UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

16 lines (15 loc) 839 B
import { ESLIncrementalScrollAxisStepper } from './incremental-scroll-axis-stepper'; import type { ComputeStepOptions, ESLIncrementalScrollOptions } from './incremental-scroll-types'; /** Coordinates incremental scrolling for both axes using provided alignment strategies */ export declare class ESLIncrementalScroller { private $el; private options; protected steppers: ESLIncrementalScrollAxisStepper[]; constructor($el: HTMLElement | null, options: ESLIncrementalScrollOptions); /** Indicates whether scrolling should continue based on axis steppers' states */ get shouldContinue(): boolean; /** Current geometry snapshot used by axis steppers to compute deltas */ get stepOptions(): ComputeStepOptions; /** Executes a single scroll step for both axes based on computed deltas */ step(): void; }