UNPKG

@dxtmisha/functional-basic

Version:

Core functional utility library for modern web development without framework dependencies

34 lines (33 loc) 985 B
/** * Class for getting the scroll width. * * Класс для получения ширины скролла. */ export declare class ScrollbarWidth { private static storage; private static calculate; /** * Checks whether to enable scroll hiding. * * Проверяет, надо ли включить скрытие скролла. */ static is(): Promise<boolean>; /** * Returns the width of the scroll. * * Возвращает ширину скролла. */ static get(): Promise<number>; /** * Creates elements to check the width of the scroll. * * Создает элементы для проверки ширины скролла. */ private static createElement; /** * Initialization of data to check the width of the scroll. * * Инициализация данных для проверки ширины скролла. */ private static init; }