UNPKG

thsc-datav-standard-chart

Version:

标准范式组件

70 lines (69 loc) 1.81 kB
interface Arg1 { /** * width:容器宽度 * name:根节点补充信息 * text:根节点补充信息 * orient:处理label位置 */ width: number; name: string; text: string; orient?: string; depth?: number; } /** * 处理节点文本 * @param arg1 根节点额外信息 * @param arg2 节点信息 * @param arg3 节点信息属性字段(方便业务自定义展示属性) * @param theme 主题 * @returns */ export declare function handleFormatter(arg1: Arg1, arg2: any, arg3: any): { label: { formatter: (ecParams: any) => any; rich: {}; }; }; export declare function handlePcFormatter(arg1: Arg1, arg2: any, arg3: any, theme: any): { label: { formatter: (ecParams: any) => any; rich: {}; }; }; /** * * @param opts 节点信息 * @param arg1 节点信息属性字段(方便业务自定义展示属性) * @returns */ export declare function handleTooltip(opts: any, arg1?: any): (params: any) => string; /** * * @param opts legend信息 * @param theme 风格 * @returns */ export declare function handleLegend(opts: any, theme: any): { type: string; left: number; top: number; children: object[]; }; export declare function handleLinks(opts1: any, opts2: any): any; interface Args { /** * max:取各周期同层节点宽度之和最大值集合,设定该集合最大值所占宽度比 * min:取各周期同层节点宽度之和最大值集合,设定该集合最小值所占宽度比 */ max: number; min: number; type: string; } /** * 处理同层宽度之和最大值占屏幕的百分比 * @param opts data全周期数据 * @param args */ export declare function handleNodeLengthPercent(opts: any, args: Args): any[]; export {};