@antv/gpt-vis 1.0.0-beta.1 → 1.0.0

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.
Files changed (159) hide show
  1. package/README.md +223 -47
  2. package/README.zh-CN.md +227 -51
  3. package/dist/cjs/gpt-vis/index.d.ts +8 -1
  4. package/dist/cjs/gpt-vis/index.js +43 -20
  5. package/dist/cjs/index.d.ts +15 -2
  6. package/dist/cjs/index.js +22 -2
  7. package/dist/cjs/syntax/parser.d.ts +17 -2
  8. package/dist/cjs/syntax/parser.js +151 -38
  9. package/dist/cjs/util/container.d.ts +5 -0
  10. package/dist/cjs/util/container.js +43 -0
  11. package/dist/cjs/util/theme.d.ts +5 -0
  12. package/dist/cjs/util/theme.js +9 -2
  13. package/dist/cjs/vis/area/index.js +2 -1
  14. package/dist/cjs/vis/bar/index.js +5 -4
  15. package/dist/cjs/vis/boxplot/index.js +7 -2
  16. package/dist/cjs/vis/column/index.js +5 -4
  17. package/dist/cjs/vis/dual-axes/index.js +3 -3
  18. package/dist/cjs/vis/fishbone-diagram/index.d.ts +35 -0
  19. package/dist/cjs/vis/fishbone-diagram/index.js +191 -0
  20. package/dist/cjs/vis/flow-diagram/index.d.ts +27 -0
  21. package/dist/cjs/vis/flow-diagram/index.js +287 -0
  22. package/dist/cjs/vis/funnel/index.js +2 -1
  23. package/dist/cjs/vis/histogram/index.js +3 -7
  24. package/dist/cjs/vis/indented-tree/index.d.ts +40 -0
  25. package/dist/cjs/vis/indented-tree/index.js +385 -0
  26. package/dist/cjs/vis/line/index.js +2 -1
  27. package/dist/cjs/vis/liquid/index.js +2 -1
  28. package/dist/cjs/vis/mindmap/index.d.ts +32 -0
  29. package/dist/cjs/vis/mindmap/index.js +222 -0
  30. package/dist/cjs/vis/network-graph/index.d.ts +59 -0
  31. package/dist/cjs/vis/network-graph/index.js +175 -0
  32. package/dist/cjs/vis/organization-chart/index.d.ts +64 -0
  33. package/dist/cjs/vis/organization-chart/index.js +200 -0
  34. package/dist/cjs/vis/pie/index.js +3 -3
  35. package/dist/cjs/vis/radar/index.d.ts +1 -0
  36. package/dist/cjs/vis/radar/index.js +10 -9
  37. package/dist/cjs/vis/sankey/index.js +2 -1
  38. package/dist/cjs/vis/scatter/index.d.ts +2 -0
  39. package/dist/cjs/vis/scatter/index.js +9 -4
  40. package/dist/cjs/vis/summary/index.js +17 -3
  41. package/dist/cjs/vis/table/index.d.ts +1 -0
  42. package/dist/cjs/vis/table/index.js +37 -1
  43. package/dist/cjs/vis/treemap/index.js +2 -1
  44. package/dist/cjs/vis/venn/index.d.ts +2 -1
  45. package/dist/cjs/vis/venn/index.js +18 -3
  46. package/dist/cjs/vis/violin/index.js +2 -1
  47. package/dist/cjs/vis/waterfall/index.d.ts +6 -9
  48. package/dist/cjs/vis/waterfall/index.js +29 -6
  49. package/dist/cjs/vis/word-cloud/index.js +2 -1
  50. package/dist/cjs/vis-wrapper/icons.js +2 -2
  51. package/dist/cjs/vis-wrapper/index.d.ts +1 -0
  52. package/dist/cjs/vis-wrapper/index.js +27 -16
  53. package/dist/cjs/vis-wrapper/styles.d.ts +1 -1
  54. package/dist/cjs/vis-wrapper/styles.js +8 -1
  55. package/dist/esm/gpt-vis/index.d.ts +8 -1
  56. package/dist/esm/gpt-vis/index.js +47 -26
  57. package/dist/esm/index.d.ts +15 -2
  58. package/dist/esm/index.js +7 -1
  59. package/dist/esm/syntax/parser.d.ts +17 -2
  60. package/dist/esm/syntax/parser.js +248 -90
  61. package/dist/esm/util/container.d.ts +5 -0
  62. package/dist/esm/util/container.js +20 -0
  63. package/dist/esm/util/theme.d.ts +5 -0
  64. package/dist/esm/util/theme.js +9 -0
  65. package/dist/esm/vis/area/index.js +3 -2
  66. package/dist/esm/vis/bar/index.js +7 -6
  67. package/dist/esm/vis/boxplot/index.js +17 -4
  68. package/dist/esm/vis/column/index.js +7 -6
  69. package/dist/esm/vis/dual-axes/index.js +13 -5
  70. package/dist/esm/vis/fishbone-diagram/index.d.ts +35 -0
  71. package/dist/esm/vis/fishbone-diagram/index.js +219 -0
  72. package/dist/esm/vis/flow-diagram/index.d.ts +27 -0
  73. package/dist/esm/vis/flow-diagram/index.js +349 -0
  74. package/dist/esm/vis/funnel/index.js +3 -2
  75. package/dist/esm/vis/histogram/index.js +6 -7
  76. package/dist/esm/vis/indented-tree/index.d.ts +40 -0
  77. package/dist/esm/vis/indented-tree/index.js +569 -0
  78. package/dist/esm/vis/line/index.js +3 -2
  79. package/dist/esm/vis/liquid/index.js +3 -2
  80. package/dist/esm/vis/mindmap/index.d.ts +32 -0
  81. package/dist/esm/vis/mindmap/index.js +316 -0
  82. package/dist/esm/vis/network-graph/index.d.ts +59 -0
  83. package/dist/esm/vis/network-graph/index.js +242 -0
  84. package/dist/esm/vis/organization-chart/index.d.ts +64 -0
  85. package/dist/esm/vis/organization-chart/index.js +271 -0
  86. package/dist/esm/vis/pie/index.js +4 -8
  87. package/dist/esm/vis/radar/index.d.ts +1 -0
  88. package/dist/esm/vis/radar/index.js +20 -4
  89. package/dist/esm/vis/sankey/index.js +3 -2
  90. package/dist/esm/vis/scatter/index.d.ts +2 -0
  91. package/dist/esm/vis/scatter/index.js +15 -4
  92. package/dist/esm/vis/summary/index.js +25 -4
  93. package/dist/esm/vis/table/index.d.ts +1 -0
  94. package/dist/esm/vis/table/index.js +9 -2
  95. package/dist/esm/vis/treemap/index.js +3 -2
  96. package/dist/esm/vis/venn/index.d.ts +2 -1
  97. package/dist/esm/vis/venn/index.js +29 -4
  98. package/dist/esm/vis/violin/index.js +3 -2
  99. package/dist/esm/vis/waterfall/index.d.ts +6 -9
  100. package/dist/esm/vis/waterfall/index.js +33 -13
  101. package/dist/esm/vis/word-cloud/index.js +3 -2
  102. package/dist/esm/vis-wrapper/icons.js +2 -2
  103. package/dist/esm/vis-wrapper/index.d.ts +1 -0
  104. package/dist/esm/vis-wrapper/index.js +15 -10
  105. package/dist/esm/vis-wrapper/styles.d.ts +1 -1
  106. package/dist/esm/vis-wrapper/styles.js +1 -1
  107. package/dist/umd/index.min.js +1 -1
  108. package/package.json +17 -21
  109. package/src/gpt-vis/index.ts +0 -283
  110. package/src/index.ts +0 -44
  111. package/src/readme.md +0 -37
  112. package/src/syntax/index.ts +0 -2
  113. package/src/syntax/parser.ts +0 -411
  114. package/src/types/index.ts +0 -29
  115. package/src/util/theme.ts +0 -167
  116. package/src/vis/area/README.md +0 -143
  117. package/src/vis/area/index.ts +0 -212
  118. package/src/vis/bar/README.md +0 -158
  119. package/src/vis/bar/index.ts +0 -186
  120. package/src/vis/boxplot/README.md +0 -168
  121. package/src/vis/boxplot/index.ts +0 -162
  122. package/src/vis/column/README.md +0 -158
  123. package/src/vis/column/index.ts +0 -185
  124. package/src/vis/dual-axes/README.md +0 -191
  125. package/src/vis/dual-axes/index.ts +0 -218
  126. package/src/vis/funnel/README.md +0 -143
  127. package/src/vis/funnel/index.ts +0 -238
  128. package/src/vis/histogram/README.md +0 -130
  129. package/src/vis/histogram/index.ts +0 -153
  130. package/src/vis/line/README.md +0 -138
  131. package/src/vis/line/index.ts +0 -159
  132. package/src/vis/liquid/README.md +0 -150
  133. package/src/vis/liquid/index.ts +0 -130
  134. package/src/vis/pie/README.md +0 -127
  135. package/src/vis/pie/index.ts +0 -163
  136. package/src/vis/radar/README.md +0 -184
  137. package/src/vis/radar/index.ts +0 -214
  138. package/src/vis/sankey/README.md +0 -144
  139. package/src/vis/sankey/index.ts +0 -144
  140. package/src/vis/scatter/README.md +0 -145
  141. package/src/vis/scatter/index.ts +0 -147
  142. package/src/vis/summary/README.md +0 -272
  143. package/src/vis/summary/index.ts +0 -91
  144. package/src/vis/table/README.md +0 -174
  145. package/src/vis/table/index.ts +0 -241
  146. package/src/vis/treemap/README.md +0 -199
  147. package/src/vis/treemap/index.ts +0 -167
  148. package/src/vis/venn/README.md +0 -153
  149. package/src/vis/venn/index.ts +0 -149
  150. package/src/vis/violin/README.md +0 -168
  151. package/src/vis/violin/index.ts +0 -216
  152. package/src/vis/waterfall/README.md +0 -178
  153. package/src/vis/waterfall/index.ts +0 -258
  154. package/src/vis/word-cloud/README.md +0 -137
  155. package/src/vis/word-cloud/index.ts +0 -137
  156. package/src/vis-wrapper/README.md +0 -159
  157. package/src/vis-wrapper/icons.ts +0 -35
  158. package/src/vis-wrapper/index.ts +0 -276
  159. package/src/vis-wrapper/styles.ts +0 -195
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/gpt-vis",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0",
4
4
  "description": "Components for GPTs, generative AI, and LLM projects. Not only UI Components.",
5
5
  "keywords": [
6
6
  "antv",
@@ -24,34 +24,18 @@
24
24
  "jsdelivr": "dist/umd/index.min.js",
25
25
  "unpkg": "dist/umd/index.min.js",
26
26
  "files": [
27
- "src",
28
27
  "dist",
29
28
  "README.md",
30
29
  "!dist/umd/report.html"
31
30
  ],
32
- "scripts": {
33
- "prepare": "husky",
34
- "build": "father build && limit-size",
35
- "check-deps": "father doctor",
36
- "check-format": "prettier './**/*.{ts,tsx,js,jsx,json,md,css,less}' --check",
37
- "format": "prettier './**/*.{ts,tsx,js,jsx,json,md,css,less}' --write",
38
- "lint:ts": "eslint src/**",
39
- "lint:ts-fix": "pnpm lint:ts --fix",
40
- "test": "vitest run",
41
- "test:watch": "vitest",
42
- "changeset": "changeset add",
43
- "publish-version": "changeset version",
44
- "publish-package": "pnpm build && changeset publish"
45
- },
46
31
  "dependencies": {
47
32
  "@antv/g2": "^5.4.1",
33
+ "@antv/g6": "^5.1.0",
48
34
  "@antv/t8": "^0.3.0",
49
35
  "@zumer/snapdom": "^1.9.14",
50
36
  "measury": "^0.1.5"
51
37
  },
52
38
  "devDependencies": {
53
- "@changesets/changelog-github": "^0.5.1",
54
- "@changesets/cli": "^2.29.7",
55
39
  "@commitlint/cli": "^19.8.1",
56
40
  "@commitlint/config-conventional": "^19.8.1",
57
41
  "@eslint/js": "^9.37.0",
@@ -76,7 +60,7 @@
76
60
  "webpack-bundle-analyzer": "^4.10.2"
77
61
  },
78
62
  "engines": {
79
- "node": ">=18",
63
+ "node": ">=20",
80
64
  "pnpm": ">=8"
81
65
  },
82
66
  "lint-staged": {
@@ -98,16 +82,28 @@
98
82
  "limit-size": [
99
83
  {
100
84
  "path": "dist/umd/index.min.js",
101
- "limit": "1.5 Mb"
85
+ "limit": "3 Mb"
102
86
  },
103
87
  {
104
88
  "path": "dist/umd/index.min.js",
105
- "limit": "500 Kb",
89
+ "limit": "1 Mb",
106
90
  "gzip": true
107
91
  }
108
92
  ],
109
93
  "publishConfig": {
110
94
  "access": "public",
111
95
  "registry": "https://registry.npmjs.org"
96
+ },
97
+ "scripts": {
98
+ "build": "father build && limit-size",
99
+ "dev": "father dev",
100
+ "check-deps": "father doctor",
101
+ "check-format": "prettier './**/*.{ts,tsx,js,jsx,json,md,css,less}' --check",
102
+ "format": "prettier './**/*.{ts,tsx,js,jsx,json,md,css,less}' --write",
103
+ "lint:ts": "eslint src/**",
104
+ "lint:ts-fix": "pnpm lint:ts --fix",
105
+ "test": "vitest run",
106
+ "test:watch": "vitest",
107
+ "publish-package": "pnpm build && pnpm publish"
112
108
  }
113
109
  }
@@ -1,283 +0,0 @@
1
- import { isVisSyntax, parse } from '../syntax/parser';
2
- import type { VisualizationOptions } from '../types';
3
- import { createVisWrapper, type WrapperInstance } from '../vis-wrapper';
4
- import type { AreaConfig, AreaInstance } from '../vis/area';
5
- import { Area } from '../vis/area';
6
- import type { BarConfig, BarInstance } from '../vis/bar';
7
- import { Bar } from '../vis/bar';
8
- import type { BoxplotConfig, BoxplotInstance } from '../vis/boxplot';
9
- import { Boxplot } from '../vis/boxplot';
10
- import type { ColumnConfig, ColumnInstance } from '../vis/column';
11
- import { Column } from '../vis/column';
12
- import type { DualAxesConfig, DualAxesInstance } from '../vis/dual-axes';
13
- import { DualAxes } from '../vis/dual-axes';
14
- import type { FunnelConfig, FunnelInstance } from '../vis/funnel';
15
- import { Funnel } from '../vis/funnel';
16
- import type { HistogramConfig, HistogramInstance } from '../vis/histogram';
17
- import { Histogram } from '../vis/histogram';
18
- import type { LineConfig, LineInstance } from '../vis/line';
19
- import { Line } from '../vis/line';
20
- import type { LiquidConfig, LiquidInstance } from '../vis/liquid';
21
- import { Liquid } from '../vis/liquid';
22
- import type { PieConfig, PieInstance } from '../vis/pie';
23
- import { Pie } from '../vis/pie';
24
- import type { RadarConfig, RadarInstance } from '../vis/radar';
25
- import { Radar } from '../vis/radar';
26
- import type { SankeyConfig, SankeyInstance } from '../vis/sankey';
27
- import { Sankey } from '../vis/sankey';
28
- import type { ScatterConfig, ScatterInstance } from '../vis/scatter';
29
- import { Scatter } from '../vis/scatter';
30
- import type { SummaryConfig, SummaryInstance } from '../vis/summary';
31
- import { Summary } from '../vis/summary';
32
- import type { TableConfig, TableInstance } from '../vis/table';
33
- import { Table } from '../vis/table';
34
- import type { TreemapConfig, TreemapInstance } from '../vis/treemap';
35
- import { Treemap } from '../vis/treemap';
36
- import type { VennConfig, VennInstance } from '../vis/venn';
37
- import { Venn } from '../vis/venn';
38
- import type { ViolinConfig, ViolinInstance } from '../vis/violin';
39
- import { Violin } from '../vis/violin';
40
- import type { WaterfallConfig, WaterfallInstance } from '../vis/waterfall';
41
- import { Waterfall } from '../vis/waterfall';
42
- import type { WordCloudConfig, WordCloudInstance } from '../vis/word-cloud';
43
- import { WordCloud } from '../vis/word-cloud';
44
-
45
- /**
46
- * Union type for all supported chart configurations
47
- */
48
- export type GPTVisConfig =
49
- | AreaConfig
50
- | BarConfig
51
- | BoxplotConfig
52
- | ColumnConfig
53
- | DualAxesConfig
54
- | FunnelConfig
55
- | HistogramConfig
56
- | LineConfig
57
- | LiquidConfig
58
- | PieConfig
59
- | RadarConfig
60
- | SankeyConfig
61
- | ScatterConfig
62
- | SummaryConfig
63
- | TableConfig
64
- | TreemapConfig
65
- | VennConfig
66
- | ViolinConfig
67
- | WaterfallConfig
68
- | WordCloudConfig;
69
-
70
- /**
71
- * Union type for all chart instances
72
- */
73
- type ChartInstance =
74
- | AreaInstance
75
- | BarInstance
76
- | BoxplotInstance
77
- | ColumnInstance
78
- | DualAxesInstance
79
- | FunnelInstance
80
- | HistogramInstance
81
- | LineInstance
82
- | LiquidInstance
83
- | PieInstance
84
- | RadarInstance
85
- | SankeyInstance
86
- | ScatterInstance
87
- | SummaryInstance
88
- | TableInstance
89
- | TreemapInstance
90
- | VennInstance
91
- | ViolinInstance
92
- | WaterfallInstance
93
- | WordCloudInstance;
94
-
95
- /**
96
- * GPTVis is the unified API for all chart types.
97
- * It provides a simple interface to render different types of visualizations.
98
- *
99
- * @example
100
- * ```ts
101
- * import { GPTVis } from '@antv/gpt-vis';
102
- *
103
- * const g = new GPTVis({
104
- * container: '#container',
105
- * width: 600,
106
- * height: 400,
107
- * theme: 'academy', // Optional theme
108
- * wrapper: true, // Enable wrapper with tabs and controls (default: false)
109
- * });
110
- *
111
- * // Render with config object
112
- * g.render({
113
- * type: 'pie',
114
- * data: [
115
- * { category: '分类一', value: 27 },
116
- * { category: '分类二', value: 25 },
117
- * ],
118
- * innerRadius: 0.6,
119
- * });
120
- *
121
- * // Or render with syntax string
122
- * g.render(`
123
- * vis pie
124
- * data
125
- * - category 分类一
126
- * value 27
127
- * - category 分类二
128
- * value 25
129
- * innerRadius: 0.6
130
- * `);
131
- *
132
- * g.destroy();
133
- * ```
134
- */
135
- export class GPTVis {
136
- private options: VisualizationOptions;
137
- private currentChart: ChartInstance | null = null;
138
- private wrapperInstance: WrapperInstance | null = null;
139
-
140
- /**
141
- * Chart type registry mapping type strings to factory functions
142
- */
143
- private static readonly chartRegistry: Record<
144
- string,
145
- (options: VisualizationOptions) => ChartInstance
146
- > = {
147
- area: Area,
148
- bar: Bar,
149
- boxplot: Boxplot,
150
- column: Column,
151
- 'dual-axes': DualAxes,
152
- funnel: Funnel,
153
- histogram: Histogram,
154
- line: Line,
155
- liquid: Liquid,
156
- pie: Pie,
157
- radar: Radar,
158
- sankey: Sankey,
159
- scatter: Scatter,
160
- summary: Summary,
161
- table: Table,
162
- treemap: Treemap,
163
- venn: Venn,
164
- violin: Violin,
165
- waterfall: Waterfall,
166
- 'word-cloud': WordCloud,
167
- };
168
-
169
- /**
170
- * Constructor
171
- * @param options - Visualization options containing container, dimensions, and optional theme
172
- */
173
- constructor(options: VisualizationOptions) {
174
- this.options = options;
175
- }
176
-
177
- /**
178
- * Render a chart based on the provided configuration or syntax string.
179
- *
180
- * @param config - Chart configuration object (with type field) or syntax string (starting with 'vis [type]')
181
- *
182
- * @example
183
- * ```ts
184
- * // With config object
185
- * g.render({
186
- * type: 'pie',
187
- * data: [{ category: 'A', value: 30 }, { category: 'B', value: 70 }]
188
- * });
189
- *
190
- * // With syntax string
191
- * g.render(`
192
- * vis pie
193
- * data
194
- * - category A
195
- * value 30
196
- * - category B
197
- * value 70
198
- * `);
199
- * ```
200
- */
201
- render(config: string | Record<string, unknown>): void {
202
- let type = '';
203
- let chartConfig: any;
204
- // If config is a string, parse it as syntax
205
- if (!isVisSyntax(config) && typeof config === 'string') {
206
- // Parse the syntax string by `Summary` component directly
207
- type = 'summary';
208
- chartConfig = config;
209
- } else {
210
- // Otherwise, parse the config object or syntax string
211
- chartConfig = typeof config === 'string' ? parse(config) : config;
212
- type = chartConfig.type as string;
213
- }
214
-
215
- if (!type) {
216
- throw new Error(
217
- 'Chart type is required. Please provide a "type" field in the config object or use syntax string starting with "vis [type]".',
218
- );
219
- }
220
-
221
- if (!type) {
222
- throw new Error('Chart type is required');
223
- }
224
-
225
- const chartFactory = GPTVis.chartRegistry[type];
226
-
227
- if (!chartFactory) {
228
- const availableTypes = Object.keys(GPTVis.chartRegistry).join(', ');
229
- throw new Error(`Unsupported chart type: "${type}". Available types: ${availableTypes}`);
230
- }
231
-
232
- // Destroy previous chart if exists
233
- if (this.currentChart) {
234
- this.currentChart.destroy();
235
- }
236
-
237
- // Destroy previous wrapper if exists
238
- if (this.wrapperInstance) {
239
- this.wrapperInstance.destroy();
240
- this.wrapperInstance = null;
241
- }
242
-
243
- // Create wrapper if enabled
244
- let chartContainer = this.options.container;
245
- if (this.options.wrapper) {
246
- this.wrapperInstance = createVisWrapper(this.options.container, {
247
- chartType: type,
248
- syntax: config,
249
- locale: this.options.locale || 'zh-CN',
250
- });
251
- chartContainer = this.wrapperInstance.chartContainer;
252
- }
253
-
254
- // Create chart options with the appropriate container and theme
255
- const chartOptions: VisualizationOptions = {
256
- ...this.options,
257
- container: chartContainer,
258
- };
259
-
260
- // Create new chart instance and render with merged config
261
- this.currentChart = chartFactory(chartOptions);
262
- (this.currentChart as any).render(chartConfig);
263
-
264
- // Set chart reference in wrapper if wrapper is enabled
265
- if (this.wrapperInstance) {
266
- this.wrapperInstance.setChartRef(this.currentChart);
267
- }
268
- }
269
-
270
- /**
271
- * Destroy the current chart instance and clean up resources
272
- */
273
- destroy(): void {
274
- if (this.currentChart) {
275
- this.currentChart.destroy();
276
- this.currentChart = null;
277
- }
278
- if (this.wrapperInstance) {
279
- this.wrapperInstance.destroy();
280
- this.wrapperInstance = null;
281
- }
282
- }
283
- }
package/src/index.ts DELETED
@@ -1,44 +0,0 @@
1
- export { GPTVis } from './gpt-vis';
2
- export type { GPTVisConfig } from './gpt-vis';
3
- export { isVisSyntax } from './syntax';
4
- export type { VisualizationOptions } from './types';
5
- export { Area } from './vis/area';
6
- export type { AreaConfig, AreaDataItem } from './vis/area';
7
- export { Bar } from './vis/bar';
8
- export type { BarConfig, BarDataItem } from './vis/bar';
9
- export { Boxplot } from './vis/boxplot';
10
- export type { BoxplotConfig, BoxplotDataItem } from './vis/boxplot';
11
- export { Column } from './vis/column';
12
- export type { ColumnConfig, ColumnDataItem } from './vis/column';
13
- export { DualAxes } from './vis/dual-axes';
14
- export type { DualAxesConfig, DualAxesSeriesItem } from './vis/dual-axes';
15
- export { Funnel } from './vis/funnel';
16
- export type { FunnelConfig, FunnelDataItem } from './vis/funnel';
17
- export { Histogram } from './vis/histogram';
18
- export type { HistogramConfig } from './vis/histogram';
19
- export { Line } from './vis/line';
20
- export type { LineConfig, LineDataItem } from './vis/line';
21
- export { Liquid } from './vis/liquid';
22
- export type { LiquidConfig } from './vis/liquid';
23
- export { Pie } from './vis/pie';
24
- export type { PieConfig } from './vis/pie';
25
- export { Radar } from './vis/radar';
26
- export type { RadarConfig, RadarDataItem } from './vis/radar';
27
- export { Sankey } from './vis/sankey';
28
- export type { SankeyConfig, SankeyDataItem } from './vis/sankey';
29
- export { Scatter } from './vis/scatter';
30
- export type { ScatterConfig, ScatterDataItem } from './vis/scatter';
31
- export { Summary } from './vis/summary';
32
- export type { SummaryConfig } from './vis/summary';
33
- export { Table } from './vis/table';
34
- export type { TableConfig } from './vis/table';
35
- export { Treemap } from './vis/treemap';
36
- export type { TreemapConfig, TreemapDataItem } from './vis/treemap';
37
- export { Venn } from './vis/venn';
38
- export type { VennConfig, VennDataItem } from './vis/venn';
39
- export { Violin } from './vis/violin';
40
- export type { ViolinConfig, ViolinDataItem } from './vis/violin';
41
- export { Waterfall } from './vis/waterfall';
42
- export type { WaterfallConfig, WaterfallDataItem, WaterfallPalette } from './vis/waterfall';
43
- export { WordCloud } from './vis/word-cloud';
44
- export type { WordCloudConfig, WordCloudDataItem } from './vis/word-cloud';
package/src/readme.md DELETED
@@ -1,37 +0,0 @@
1
- # GPT-Vis 1.0: Visualization for AI, Friendly!
2
-
3
- ## Vision
4
-
5
- GPT-Vis is repositioning itself as **AntV's entry point for AI-powered visualization**. The new vision focuses on providing AI-friendly visualization components that work seamlessly across different technology stacks and frameworks.
6
-
7
- ### Core Philosophy
8
-
9
- **AI-First Design**: We believe AI will gradually abstract away the complexities of underlying visualization engines. Users care about their needs, and AI-powered solutions are what matter most. GPT-Vis 1.0 embraces this by offering visualization syntax and components optimized for AI interaction, streaming output, and fault tolerance.
10
-
11
- **Technology Agnostic**: Moving away from React-only implementation to support pure JavaScript, Vue, and other frameworks. This ensures GPT-Vis can serve as a universal visualization solution for AI applications across the entire frontend ecosystem.
12
-
13
- **Unified Gateway**: GPT-Vis serves as the unified entry point for all AntV visualization libraries (G2, S2, G6, X6, L7) in AI environments, making it easier for AI agents to leverage powerful data visualization capabilities without understanding the intricacies of each engine.
14
-
15
- The library now provides 20+ common statistical charts with enhanced capabilities, improved user experience, and reduced bundle size. It introduces an AI-friendly visualization syntax inspired by Infographic standards, supporting streaming rendering and robust error handling.
16
-
17
- GPT-Vis 1.0 is designed for AI-driven scenarios including data visualization, data analysis, AI-generated reports, and presentations, ensuring that visualization remains accessible and powerful in the age of artificial intelligence.
18
-
19
- ## Release Schedule
20
-
21
- **⏰ Version 1.0 Stable Release: Expected March 21, 2026**
22
-
23
- Stay tuned for the official release featuring the complete reimagined architecture and comprehensive AI visualization capabilities.
24
-
25
- ---
26
-
27
- ## ⚠️ AI-Generated Code Policy
28
-
29
- > **Warning**: This project **only merges code generated by AI**.
30
-
31
- To contribute to this project, please follow these steps:
32
-
33
- 1. **Submit an Issue**: Clearly describe the problem, feature request, or improvement you'd like to see
34
- 2. **Assign to Copilot**: Tag `@copilot` in your issue and describe your requirements in detail
35
- 3. **AI-Generated Code**: Let Copilot or other AI coding assistants generate the implementation
36
-
37
- This policy ensures consistency with the project's AI-first philosophy and maintains a high standard of AI-compatible code throughout the codebase.
@@ -1,2 +0,0 @@
1
- export { isVisSyntax, parse } from './parser';
2
- export type { ParsedConfig } from './parser';