UNPKG

@visactor/vtable

Version:

canvas table width high performance

7 lines (6 loc) 537 B
import type { ITableLegendOption } from '../../ts-types/component/legend'; import { DiscreteTableLegend } from './discrete-legend/discrete-legend'; import type { BaseTableAPI } from '../../ts-types/base-table'; import { ContinueTableLegend } from './continue-legend/continue-legend'; export type CreateLegend = (option: ITableLegendOption, table: BaseTableAPI) => DiscreteTableLegend | ContinueTableLegend; export declare function createLegend(option: ITableLegendOption, table: BaseTableAPI): DiscreteTableLegend | ContinueTableLegend;