import { getFullPageHeight } from '../getFullPageHeight';
import { getPageHeight } from '../getPageHeight';
import { getPageParams } from '../getPageParams';
export const getPageHeightList = async (pdf, containerWidth, scrollRef, renderPageRange = {}, isFullHeight) => {
    const pages = [];
    const { start = 0, end = pdf.numPages - 1 } = renderPageRange;
    for (let index = start; index <= end; index++) {
        if (isFullHeight) {
            pages[index] = getFullPageHeight(scrollRef);
        }
        else {
            const { width, height, rotate } = await getPageParams(pdf, index);
            pages[index] = getPageHeight(containerWidth, width, height, rotate);
        }
    }
    return pages;
};
