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.

31 lines (30 loc) 684 B
import type Context from './Context'; export default class Body { private resizeTarget; 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 initResizeRow; private resizeRow; private drawTipLine; private drawFixedShadow; private binarySearch; update(): void; draw(): void; }