UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

34 lines (33 loc) 1.01 kB
import { LegendPositionType } from '../../../../constants/chart-style'; import { IKeyValues } from '../../../../models/base'; export interface ILegend { sortList?: string[]; position: LegendPositionType; columnsWidthMap?: IKeyValues<number>; width?: number; sort?: boolean | { field: string; order: 'ascend' | 'descend'; }; } export default class Legend implements ILegend { position: LegendPositionType; columnsWidthMap?: IKeyValues<number>; sortList?: string[]; width?: number; sort?: boolean | { field: string; order: 'ascend' | 'descend'; }; get option(): ILegend; get baseOption(): ILegend; setPosition(position: LegendPositionType): void; setColumnWidthMap(columnsWidthMap: IKeyValues<number>): void; set(option: ILegend): void; setSort(sort?: boolean | { field: string; order: 'ascend' | 'descend'; }): void; setWidth(width?: number): void; constructor(option: ILegend); }