UNPKG

e-virt-table

Version:

A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.

22 lines (21 loc) 1.29 kB
export type ScrollbarMode = 'outer' | 'inner'; export type ScrollbarModeConfig = { scrollbarMode?: unknown; SCROLLBAR_MODE?: unknown; SCROLLER_TRACK_SIZE?: number; }; export declare function getScrollbarMode(config: ScrollbarModeConfig): ScrollbarMode; export declare function isInnerScrollbarMode(config: ScrollbarModeConfig): boolean; export declare function getLayoutScrollerTrackSize(config: ScrollbarModeConfig): number; export declare function getOverlayScrollerTrackSize(config: ScrollbarModeConfig): number; export declare function getScrollbarCornerOffset(config: ScrollbarModeConfig, hasOppositeScrollbar: boolean): number; export declare function getScrollbarThumbEndInset(config: ScrollbarModeConfig): number; export declare function shouldDrawScrollbarTrackBorder(config: ScrollbarModeConfig): boolean; export declare function shouldDrawScrollbarTrackBackground(config: ScrollbarModeConfig): boolean; export type ScrollbarVisibilityState = { innerVisible: boolean; isFocus: boolean; isDragging: boolean; }; export declare function shouldStartInnerScrollbarShowTimer(config: ScrollbarModeConfig, isPointerInsideTable: boolean): boolean; export declare function shouldDrawScrollbar(config: ScrollbarModeConfig, state: ScrollbarVisibilityState): boolean;