/**
 * 辅助函数相关的类型定义
 */

/**
 * 图例区域
 */
export interface LegendArea {
  start: { x: number; y: number };
  end: { x: number; y: number };
  width?: number;
  height?: number;
  wholeWidth?: number;
  wholeHeight?: number;
}

/**
 * 图例数据
 */
export interface LegendData {
  area: LegendArea;
  points: any[][];
  widthArr?: number[];
  heightArr?: number[];
}

/**
 * 饼图数据
 */
export interface PieData {
  center: { x: number; y: number };
  radius: number;
  series: any[];
}

/**
 * 雷达图数据
 */
export interface RadarData {
  center: { x: number; y: number };
  radius: number;
  angleList: number[];
}
