@advt-gpt-chart/package 3.1.1 → 3.1.3

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.
Binary file
@@ -47,6 +47,7 @@ export declare function getChartCategory(chartType?: ChartType): ChartCategoryTy
47
47
  export declare const handleChartTypeChange: (chartType: ChartType, preChartJson: ChartJson) => {
48
48
  type: ChartType;
49
49
  data: DataItem[];
50
+ dataset?: import("../Chart/Dataset/types").Dataset;
50
51
  chartId?: string;
51
52
  chartName?: string;
52
53
  xField?: string;
@@ -62,6 +63,7 @@ export declare const handleChartTypeChange: (chartType: ChartType, preChartJson:
62
63
  hideChartHeader?: boolean;
63
64
  series?: any[];
64
65
  agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
66
+ availableChartTypes?: string[];
65
67
  };
66
68
  export type ChangeInfo = {
67
69
  metrics: string[];
@@ -76,6 +78,7 @@ export declare const handleChartDataSourceChange: ({ metrics, dimensions, timeGr
76
78
  dimensions: string[];
77
79
  data: DataItem[];
78
80
  type: ChartType;
81
+ dataset?: import("../Chart/Dataset/types").Dataset;
79
82
  chartId?: string;
80
83
  chartName?: string;
81
84
  xField?: string;
@@ -89,6 +92,7 @@ export declare const handleChartDataSourceChange: ({ metrics, dimensions, timeGr
89
92
  hideChartHeader?: boolean;
90
93
  series?: any[];
91
94
  agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
95
+ availableChartTypes?: string[];
92
96
  };
93
97
  export type QueryDataInfo = {
94
98
  metrics?: OptionType[];
@@ -101,6 +105,7 @@ export declare const transformQueryData2ChartJson: ({ metrics: dataMetrics, dime
101
105
  dimensions: string[];
102
106
  type: ChartType;
103
107
  data: DataItem[];
108
+ dataset?: import("../Chart/Dataset/types").Dataset;
104
109
  chartId?: string;
105
110
  chartName?: string;
106
111
  xField?: string;
@@ -114,5 +119,6 @@ export declare const transformQueryData2ChartJson: ({ metrics: dataMetrics, dime
114
119
  hideChartHeader?: boolean;
115
120
  series?: any[];
116
121
  agent?: import("../Chart/ChartCodeRender/type").AgentConfig;
122
+ availableChartTypes?: string[];
117
123
  };
118
124
  export {};
@@ -1,4 +1,6 @@
1
1
  /**
2
2
  * 将 GPT-Vis 图表的配置转换为图表的配置
3
+ * @param props - 原始配置
4
+ * @returns 转换后的配置
3
5
  */
4
6
  export declare function transform2ChartProps<T extends Record<string, any>>(props: T): T;
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const version = "3.1.1";
1
+ declare const version = "3.1.3";
2
2
  export default version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@advt-gpt-chart/package",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "ADVT GPT Chart - A React chart component library for GPT visualization",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",