UNPKG

@zhouchangju/standard-chart

Version:

标准范式组件

113 lines (112 loc) 2.54 kB
interface Arg { /** * 文本展示字段 */ name: any; value: any; percent: any; } /** * 处理节点文本 * @param sourceData 单周期源数据 * @param handleData 单周期处理后的坐标数据 * @param handleSiteData 单周期处理后的坐标附加数据 * @param arg 自定义相关字段属性 * @returns */ export declare function handleDynamicRenderItem(handleData: any, handleSiteData: any): (params: any, api: any) => { type: string; x: number; y: number; children: { type: string; style: { fill: any; stroke: string; lineWidth: number; }; shape: { points: any; }; emphasis: { style: { fill: string; }; }; }[]; }; export declare function handleDynamicRenderItemCircle(sourceData: any, radius: any): (params: any) => { type: string; x: number; y: number; children: { type: string; style: { fill: any; stroke: string; lineWidth: number; }; shape: { cx: number; cy: number; r: any; }; emphasis: { style: { fill: string; }; }; }[]; }; export declare function handleDynamicRenderItemText(handleData: any, handleSiteData: any, arg?: Arg): (params: any, api: any) => { type: string; x: number; y: number; children: { type: string; style: {}; x: any; y: any; shape: { r: number; }; textContent: { style: { text: any; fontSize: any; textAlign: string; fill: string; opacity: number; }; }; textConfig: { position: string; }; }[]; }; export declare function handleDynamicRenderItemCircleText(handleData: any, arg?: Arg): (params: any) => { type: string; x: number; y: number; children: { type: string; x: number; y: number; shape: { r: number; }; textContent: { style: { text: any; fontSize: any; textAlign: string; fill: string; opacity: number; }; }; textConfig: { position: string; }; }[]; }; export {};