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.
23 lines (22 loc) • 599 B
TypeScript
import Context from './Context';
import { CellType, Fixed } from './types';
export default class BaseCell {
ctx: Context;
x: number;
y: number;
width: number;
height: number;
fixed?: Fixed;
cellType: CellType;
constructor(ctx: Context, x: number, y: number, width: number, height: number, cellType: CellType, fixed?: Fixed);
isHorizontalVisible(): boolean;
isVerticalVisible(): boolean;
getDrawX(): number;
getDrawY(): number;
getLeftFixedX(): number;
/**
* RightFixed时相对StageX
* @returns
*/
getRightFixedX(): void;
}