@visactor/vtable
Version:
canvas table width high performance
25 lines (24 loc) • 999 B
TypeScript
import type { IColorTableLegendOption, ISizeTableLegendOption } from '../../../ts-types/component/legend';
import type { BaseTableAPI } from '../../../ts-types/base-table';
import { ColorContinuousLegend, SizeContinuousLegend } from './../../../vrender';
import type { IOrientType } from '../../../ts-types/component/util';
export declare class ContinueTableLegend {
table: BaseTableAPI;
option: IColorTableLegendOption | ISizeTableLegendOption;
orient: IOrientType;
visible: boolean;
position: 'start' | 'middle' | 'end';
selectedData: (string | number)[];
legendComponent: ColorContinuousLegend | SizeContinuousLegend;
constructor(option: IColorTableLegendOption | ISizeTableLegendOption, table: BaseTableAPI);
createComponent(): void;
resize(): void;
adjustTableSize(attrs: any): void;
getLegendAttributes(rect: any): any;
initEvent(): void;
getLegendBounds(): {
width: number;
height: number;
};
release(): void;
}