zz-chart
Version:
Alauda Chart components by Alauda Frontend Team
21 lines (20 loc) • 519 B
TypeScript
import { LegendOption } from '../types/index.js';
import { BaseComponent } from './base.js';
export interface LegendItem {
name: string;
color: string;
activated: boolean;
}
export declare class Legend extends BaseComponent<LegendOption> {
get name(): string;
inactivatedSet: Set<string>;
render(): void;
update(): void;
create(): void;
createItem(): void;
legendItemClick(props: {
name: string;
activated: boolean;
}): void;
getLegend(): LegendItem[];
}