32 lines
956 B
TypeScript
32 lines
956 B
TypeScript
import View from '../chart/view';
|
|
import { DIRECTION } from '../constant';
|
|
import { Attribute } from '../dependents';
|
|
import Geometry from '../geometry/base';
|
|
import { LegendItem } from '../interface';
|
|
/**
|
|
* @ignore
|
|
* get the legend layout from direction
|
|
* @param direction
|
|
* @returns layout 'horizontal' | 'vertical'
|
|
*/
|
|
export declare function getLegendLayout(direction: DIRECTION): 'vertical' | 'horizontal';
|
|
/**
|
|
* @ignore
|
|
* get the legend items
|
|
* @param view
|
|
* @param geometry
|
|
* @param attr
|
|
* @param themeMarker
|
|
* @param userMarker
|
|
* @returns legend items
|
|
*/
|
|
export declare function getLegendItems(view: View, geometry: Geometry, attr: Attribute, themeMarker: object, userMarker: any): any[];
|
|
/**
|
|
* @ignore
|
|
* custom legend 的 items 获取
|
|
* @param themeMarker
|
|
* @param userMarker
|
|
* @param customItems
|
|
*/
|
|
export declare function getCustomLegendItems(themeMarker: object, userMarker: object, customItems: LegendItem[]): LegendItem[];
|