UNPKG

@exadel/esl

Version:

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

19 lines (18 loc) 1.47 kB
import type { AlignmentStrategy, DistanceCalculator, ESLIncrementalScrollOptions } from './incremental-scroll-types'; /** * Alignment strategy that keeps current scroll position unchanged. * Always returns zero distance, effectively disabling scroll on this axis. */ export declare const keepPosition: AlignmentStrategy; /** Creates alignment strategy that positions element at the top of container or viewport */ export declare function alignToTop(options: ESLIncrementalScrollOptions): DistanceCalculator; /** Creates alignment strategy that centers element vertically in container or viewport */ export declare function alignToMiddle(options: ESLIncrementalScrollOptions): DistanceCalculator; /** Creates alignment strategy that positions element at the bottom of container or viewport */ export declare function alignToBottom(options: ESLIncrementalScrollOptions): DistanceCalculator; /** Creates alignment strategy that positions element at the left edge of container or viewport */ export declare function alignToLeft(options: ESLIncrementalScrollOptions): DistanceCalculator; /** Creates alignment strategy that centers element horizontally in container or viewport */ export declare function alignToCenter(options: ESLIncrementalScrollOptions): DistanceCalculator; /** Creates alignment strategy that positions element at the right edge of container or viewport */ export declare function alignToRight(options: ESLIncrementalScrollOptions): DistanceCalculator;