import { Alignment, CellSize } from '../types'; import ScalingCellSizeAndPositionManager from './ScalingCellSizeAndPositionManager.js'; /** * Helper function that determines when to update scroll offsets to ensure that a scroll-to-index remains visible. * This function also ensures that the scroll ofset isn't past the last column/row of cells. */ interface Params { cellSize?: CellSize; cellSizeAndPositionManager: ScalingCellSizeAndPositionManager; previousCellsCount: number; previousCellSize: CellSize; previousScrollToAlignment: Alignment; previousScrollToIndex: number; previousSize: number; scrollOffset: number; scrollToAlignment: Alignment; scrollToIndex: number; size: number; sizeJustIncreasedFromZero: boolean; updateScrollIndexCallback: (index: number) => void; } /** * */ export default function updateScrollIndexHelper({ cellSize, cellSizeAndPositionManager, previousCellsCount, previousCellSize, previousScrollToAlignment, previousScrollToIndex, previousSize, scrollOffset, scrollToAlignment, scrollToIndex, size, sizeJustIncreasedFromZero, updateScrollIndexCallback }: Params): void; export {}; //# sourceMappingURL=updateScrollIndexHelper.d.ts.map