import type { IControlOption } from '@antv/l7'; import { Control } from '@antv/l7'; import { CategoryLegendOptions, ContinueLegendOptions } from '@antv/l7plot-component'; export type LegendItem = { type: 'category'; options: CategoryLegendOptions; } | { type: 'continue'; options: ContinueLegendOptions; }; export interface LegendOptions extends Partial { items: LegendItem[]; } export declare class Legend extends Control { /** * legend 的 schema 配置 */ protected options: LegendOptions; /** * legendComponents 实例 */ private legendComponents; constructor(options: LegendOptions); private initLegendComponents; /** * 获取默认配置 */ protected getDefaultOptions(): Partial; onAdd(): HTMLElement; onRemove(): void; }