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.

40 lines (39 loc) 918 B
import type Context from './Context'; export default class Body { private resizeTarget; private dragSource; private dragTarget; private dragRowDiff; private dragPosition; private isMouseDown; private resizeDiff; private clientY; private ctx; private x; private y; private width; private height; private headIndex; private tailIndex; private isResizing; private renderRows; private visibleRows; private visibleHeight; private visibleWidth; private containerRect; private data; constructor(ctx: Context); private init; private initTree; private initSelection; private initResizeRow; private initDragRow; private resizeRow; private drawTipLine; drawDragRowTip(): void; private drawFixedShadow; private binarySearch; update(): void; updateAutoHeight(): boolean; draw(): void; }