NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/chart/controller/legend.d.ts

109 lines
2.3 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { LegendOption } from '../../interface';
import View from '../view';
import { Controller } from './base';
declare type Option = Record<string, LegendOption> | boolean;
/**
* @ignore
* legend Controller
*/
export default class Legend extends Controller<Option> {
/** the draw group of axis */
private container;
/** 用于多个 legend 布局的 bbox */
private layoutBBox;
constructor(view: View);
get name(): string;
init(): void;
/**
* render the legend component by legend options
*/
render(): void;
/**
* layout legend
* legend direction x, y
*/
layout(): void;
/**
* legend
*/
update(): void;
clear(): void;
destroy(): void;
/**
* Geometry
*/
private getGeometries;
/**
* Geometry legend
* @param doEach loop
*/
private loopLegends;
/**
* legend
* @param geometry
* @param attr
* @param scale
*/
private createFieldLegend;
/**
* 使 category
* @param geometry
* @param attr
* @param scale
* @param legendOption
*/
private createCustomLegend;
/**
*
* @param geometry
* @param attr
* @param scale
* @param legendOption
*/
private createContinuousLegend;
/**
*
* @param geometry
* @param attr
* @param scale
* @param legendOption
*/
private createCategoryLegend;
/**
*
* @param geometry
* @param attr
* @param scale
* @param legendOption
*/
private getContinuousCfg;
/**
*
* @param geometry
* @param attr
* @param scale
* @param custom
* @param legendOption
*/
private getCategoryCfg;
/**
* get legend config, use option > suggestion > theme
* @param baseCfg
* @param legendOption
* @param direction
*/
private mergeLegendCfg;
/**
* id
* @param key
*/
private getId;
/**
* id
* @param id
*/
private getComponentById;
private getCategoryLegendSizeCfg;
}
export {};