import type { IDiscreteLegendSpec, IColorLegendSpec, ISizeLegendSpec } from '@visactor/vchart/esm/component/legend'; import type { LegendItemDatum } from './../../vrender'; export type IDiscreteTableLegendOption = Omit & { data: LegendItemDatum[]; }; export type IColorTableLegendOption = Omit & { value: [number, number]; min: number; max: number; colors: string[]; }; export type ISizeTableLegendOption = Omit & { value: [number, number]; min: number; max: number; sizeRange: [number, number]; }; export type ITableLegendOption = IDiscreteTableLegendOption | IColorTableLegendOption | ISizeTableLegendOption;