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.31 kB
import type { Fixed } from './types'; export type BorderStyle = 'default' | 'outer' | 'inner' | 'none'; export type BorderConfigValue = boolean | BorderStyle; type ResizeColumnDividerColorConfig = { ENABLE_RESIZE_COLUMN: boolean; RESIZE_COLUMN_DIVIDER_COLOR?: string; }; type ColumnDividerBoundaries = { fixedLeftEnd?: number; fixedRightStart?: number; }; export declare function resolveResizeColumnDividerColor(config: ResizeColumnDividerColorConfig): string | undefined; export declare function normalizeBorderStyle(value: BorderConfigValue): BorderStyle; export declare function shouldDrawFullCellBorder(value: BorderConfigValue): boolean; export declare function shouldDrawInternalHorizontalBorder(value: BorderConfigValue): boolean; export declare function getColumnDividerSide(fixed: Fixed | undefined, x: number, width: number, sectionWidth: number, boundaries?: ColumnDividerBoundaries): 'left' | 'right' | null; export declare function shouldDrawOuterBorder(value: BorderConfigValue): boolean; export declare function shouldDrawScrollerBorder(value: BorderConfigValue): boolean; export declare function shouldDrawScrollerTrack(value: BorderConfigValue, hasScrollbar: boolean): boolean; export declare function shouldDrawRightBoundaryBorder(value: BorderConfigValue): boolean; export {};