UNPKG

@visactor/vtable

Version:

canvas table width high performance

48 lines (47 loc) 1.3 kB
import type { GraphicType, IGroupGraphicAttribute } from './../../vrender'; import { Group } from './../../vrender'; import type { BaseTableAPI } from '../../ts-types/base-table'; interface IChartGraphicAttribute extends IGroupGraphicAttribute { canvas: HTMLCanvasElement; dataId: string | Record<string, string>; data: any; spec: any; axes: any; ClassType: any; chartInstance: any; cellPadding: number[]; mode: string; modeParams: any; dpr: number; tableChartOption: any; col?: number; row?: number; } export declare const CHART_NUMBER_TYPE: number; export declare class Chart extends Group { type: GraphicType; attribute: IChartGraphicAttribute; chartInstance: any; activeChartInstance: any; active: boolean; cacheCanvas: HTMLCanvasElement | { x: number; y: number; width: number; height: number; canvas: HTMLCanvasElement; }[]; isShareChartSpec: boolean; constructor(isShareChartSpec: boolean, params: IChartGraphicAttribute); activate(table: BaseTableAPI): void; static temp: number; deactivate(): void; updateData(data: any): void; getViewBox(): { x1: number; y1: number; x2: number; y2: number; }; } export {};