UNPKG

tui-grid

Version:

TOAST UI Grid : Powerful data grid control supported by TOAST UI

47 lines (39 loc) 932 B
import { Side } from '../store/focus'; import { PagePosition } from '../store/selection'; import { CellValue, Row } from '../store/data'; export type ElementInfo = { side: Side; top: number; left: number; } & ScrollData; export type OverflowType = -1 | 0 | 1; export type EventInfo = PagePosition & { shiftKey: boolean; }; export type ViewInfo = PagePosition & ScrollData; export type UpdateType = 'UPDATE_COLUMN' | 'UPDATE_CELL' | 'UPDATE_ROW'; export interface ScrollData { scrollLeft: number; scrollTop: number; } export interface OverflowInfo { x: OverflowType; y: OverflowType; } export interface BodySize { bodyWidth: number; bodyHeight: number; } export interface ContainerPosition { x: number; y: number; } export interface Options { orgValue?: CellValue; value?: CellValue; type?: 'APPEND' | 'REMOVE' | 'SET'; } export interface OriginData { rows: Row[]; targetIndexes: number[]; }