@visactor/vtable
Version:
canvas table width high performance
9 lines (8 loc) • 477 B
TypeScript
import type { IFullThemeSpec } from './../../vrender';
import type { Group } from '../graphic/group';
import type { BaseTableAPI } from '../../ts-types/base-table';
export declare function getTextPos(padding: number[], textAlign: CanvasTextAlign, textBaseline: CanvasTextBaseline, width: number, height: number): {
x: number;
y: number;
};
export declare function updateTextPose(table: BaseTableAPI, cell: Group, col: number, row: number, theme: IFullThemeSpec): void;