win-chart 2.9.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,82 +0,0 @@
1
- import { IChartInfo, IWinChartProps } from '@/types';
2
- /**
3
- * 判断是否为一个非空数组
4
- * @param data 任意类型的数据
5
- * @returns 如果是非空数组则为真
6
- */
7
- export declare function isNonEmptyArray<T>(data: unknown): data is T[];
8
- /**
9
- * 数据转百分比
10
- * @param value
11
- * @param num
12
- */
13
- export declare const handleToPercent: (value: unknown, num?: number) => string;
14
- /**
15
- * 数组去重
16
- * @param data
17
- * @returns
18
- */
19
- export declare function arrDeduplication<T>(data?: T[]): T[];
20
- /**
21
- * 数组求和
22
- * @param list
23
- */
24
- export declare const arraySum: (list?: number[]) => number;
25
- /**
26
- * 判断是否为一个有效数组(有值,并且长度大于 0)
27
- * @param data
28
- * @returns
29
- */
30
- export declare const checkEntityArr: (data: unknown) => boolean;
31
- /**
32
- * 处理数据降序
33
- * @param data
34
- * @returns
35
- */
36
- export declare const dataDescOrder: (data?: IChartInfo[]) => IChartInfo[];
37
- /**
38
- * 获取 X 轴配置
39
- * @param winChartProps
40
- * @returns
41
- */
42
- export declare const getAxisOpt: (winChartProps: IWinChartProps) => echarts.XAXisComponentOption;
43
- /**
44
- * 根据 value 排序
45
- * @param arr
46
- * @param order
47
- * @returns
48
- */
49
- export declare const sortArray: (arr: IChartInfo[], order: "asc" | "desc") => IChartInfo[];
50
- /**
51
- * 根据 label 排序
52
- * @param arr
53
- * @param sortedLabels
54
- * @returns
55
- */
56
- export declare const sortArrayByLabel: (arr: IChartInfo[], sortedLabels: string[]) => IChartInfo[];
57
- /**
58
- * 处理数据排序
59
- * @param winChartProps
60
- * @returns
61
- */
62
- export declare const handleSort: (winChartProps: IWinChartProps) => IWinChartProps;
63
- export declare function debounce(func: Function, delay: number): Function;
64
- /**
65
- * 合并 series 配置
66
- * @param option
67
- * @param seriesOption
68
- * @returns
69
- */
70
- export declare const mergeSeriesOption: (option: Partial<echarts.EChartsOption>, seriesOption?: echarts.SeriesOption[]) => Partial<import("echarts").EChartsOption>;
71
- /**
72
- * 获取 label 颜色
73
- * @param opt
74
- * @returns
75
- */
76
- export declare const getLabelColor: (opt: Partial<IWinChartProps>) => "rgba(255, 255, 255, 0.7)" | "rgba(0, 0, 0, 0.7)";
77
- /**
78
- * 计算堆叠图汇总数据
79
- * @param data
80
- * @returns
81
- */
82
- export declare function aggregateStackData(data: IChartInfo[]): number[];