@antv/gpt-vis 0.4.7 → 0.5.0-beta.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 (76) hide show
  1. package/dist/cjs/ssr/area.d.ts +6 -0
  2. package/dist/cjs/ssr/area.js +64 -0
  3. package/dist/cjs/ssr/bar.d.ts +6 -0
  4. package/dist/cjs/ssr/bar.js +79 -0
  5. package/dist/cjs/ssr/column.d.ts +6 -0
  6. package/dist/cjs/ssr/column.js +77 -0
  7. package/dist/cjs/ssr/dual-axes.d.ts +6 -0
  8. package/dist/cjs/ssr/dual-axes.js +98 -0
  9. package/dist/cjs/ssr/fishbone-diagram.d.ts +6 -0
  10. package/dist/cjs/ssr/fishbone-diagram.js +189 -0
  11. package/dist/cjs/ssr/flow-diagram.d.ts +6 -0
  12. package/dist/cjs/ssr/flow-diagram.js +82 -0
  13. package/dist/cjs/ssr/histogram.d.ts +6 -0
  14. package/dist/cjs/ssr/histogram.js +50 -0
  15. package/dist/cjs/ssr/index.d.ts +2 -0
  16. package/dist/cjs/ssr/index.js +79 -0
  17. package/dist/cjs/ssr/line.d.ts +6 -0
  18. package/dist/cjs/ssr/line.js +62 -0
  19. package/dist/cjs/ssr/mind-map.d.ts +6 -0
  20. package/dist/cjs/ssr/mind-map.js +326 -0
  21. package/dist/cjs/ssr/network-graph.d.ts +6 -0
  22. package/dist/cjs/ssr/network-graph.js +72 -0
  23. package/dist/cjs/ssr/pie.d.ts +6 -0
  24. package/dist/cjs/ssr/pie.js +64 -0
  25. package/dist/cjs/ssr/radar.d.ts +6 -0
  26. package/dist/cjs/ssr/radar.js +92 -0
  27. package/dist/cjs/ssr/scatter.d.ts +6 -0
  28. package/dist/cjs/ssr/scatter.js +56 -0
  29. package/dist/cjs/ssr/treemap.d.ts +6 -0
  30. package/dist/cjs/ssr/treemap.js +57 -0
  31. package/dist/cjs/ssr/type.d.ts +30 -0
  32. package/dist/cjs/ssr/type.js +17 -0
  33. package/dist/cjs/ssr/word-cloud.d.ts +6 -0
  34. package/dist/cjs/ssr/word-cloud.js +48 -0
  35. package/dist/cjs/version.d.ts +1 -1
  36. package/dist/cjs/version.js +1 -1
  37. package/dist/esm/ssr/area.d.ts +6 -0
  38. package/dist/esm/ssr/area.js +67 -0
  39. package/dist/esm/ssr/bar.d.ts +6 -0
  40. package/dist/esm/ssr/bar.js +71 -0
  41. package/dist/esm/ssr/column.d.ts +6 -0
  42. package/dist/esm/ssr/column.js +65 -0
  43. package/dist/esm/ssr/dual-axes.d.ts +6 -0
  44. package/dist/esm/ssr/dual-axes.js +122 -0
  45. package/dist/esm/ssr/fishbone-diagram.d.ts +6 -0
  46. package/dist/esm/ssr/fishbone-diagram.js +195 -0
  47. package/dist/esm/ssr/flow-diagram.d.ts +6 -0
  48. package/dist/esm/ssr/flow-diagram.js +89 -0
  49. package/dist/esm/ssr/histogram.d.ts +6 -0
  50. package/dist/esm/ssr/histogram.js +56 -0
  51. package/dist/esm/ssr/index.d.ts +2 -0
  52. package/dist/esm/ssr/index.js +68 -0
  53. package/dist/esm/ssr/line.d.ts +6 -0
  54. package/dist/esm/ssr/line.js +61 -0
  55. package/dist/esm/ssr/mind-map.d.ts +6 -0
  56. package/dist/esm/ssr/mind-map.js +416 -0
  57. package/dist/esm/ssr/network-graph.d.ts +6 -0
  58. package/dist/esm/ssr/network-graph.js +79 -0
  59. package/dist/esm/ssr/pie.d.ts +6 -0
  60. package/dist/esm/ssr/pie.js +66 -0
  61. package/dist/esm/ssr/radar.d.ts +6 -0
  62. package/dist/esm/ssr/radar.js +88 -0
  63. package/dist/esm/ssr/scatter.d.ts +6 -0
  64. package/dist/esm/ssr/scatter.js +52 -0
  65. package/dist/esm/ssr/treemap.d.ts +6 -0
  66. package/dist/esm/ssr/treemap.js +51 -0
  67. package/dist/esm/ssr/type.d.ts +30 -0
  68. package/dist/esm/ssr/type.js +1 -0
  69. package/dist/esm/ssr/word-cloud.d.ts +6 -0
  70. package/dist/esm/ssr/word-cloud.js +40 -0
  71. package/dist/esm/version.d.ts +1 -1
  72. package/dist/esm/version.js +1 -1
  73. package/dist/umd/424.async.js +1 -0
  74. package/dist/umd/index.min.js +1 -1
  75. package/package.json +58 -31
  76. package/dist/umd/100.async.js +0 -1
@@ -0,0 +1,52 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import { createChart } from '@antv/g2-ssr';
4
+ export function Scatter(_x) {
5
+ return _Scatter.apply(this, arguments);
6
+ }
7
+ function _Scatter() {
8
+ _Scatter = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
9
+ var data, title, width, height, axisYTitle, axisXTitle;
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ data = options.data, title = options.title, width = options.width, height = options.height, axisYTitle = options.axisYTitle, axisXTitle = options.axisXTitle;
14
+ _context.next = 3;
15
+ return createChart({
16
+ type: 'point',
17
+ data: data,
18
+ width: width,
19
+ height: height,
20
+ title: title,
21
+ encode: {
22
+ x: 'x',
23
+ y: 'y'
24
+ // shape: 'point',
25
+ },
26
+ axis: {
27
+ x: {
28
+ title: axisXTitle
29
+ },
30
+ y: {
31
+ title: axisYTitle
32
+ }
33
+ },
34
+ style: {
35
+ lineWidth: 1
36
+ },
37
+ legend: {
38
+ size: false
39
+ },
40
+ animate: false,
41
+ tooltip: false
42
+ });
43
+ case 3:
44
+ return _context.abrupt("return", _context.sent);
45
+ case 4:
46
+ case "end":
47
+ return _context.stop();
48
+ }
49
+ }, _callee);
50
+ }));
51
+ return _Scatter.apply(this, arguments);
52
+ }
@@ -0,0 +1,6 @@
1
+ import { type TreemapProps } from '../export';
2
+ import { type BaseChartConfig } from './type';
3
+ export type TreemapOptions = BaseChartConfig & {
4
+ type: 'treemap';
5
+ } & TreemapProps;
6
+ export declare function Treemap(options: TreemapOptions): Promise<import("@antv/g2-ssr").Chart>;
@@ -0,0 +1,51 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import { createChart } from '@antv/g2-ssr';
4
+ export function Treemap(_x) {
5
+ return _Treemap.apply(this, arguments);
6
+ }
7
+ function _Treemap() {
8
+ _Treemap = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
9
+ var data, title, width, height;
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ data = options.data, title = options.title, width = options.width, height = options.height;
14
+ _context.next = 3;
15
+ return createChart({
16
+ type: 'treemap',
17
+ width: width,
18
+ height: height,
19
+ title: title,
20
+ data: {
21
+ type: 'inline',
22
+ value: {
23
+ name: 'root',
24
+ children: data
25
+ }
26
+ },
27
+ layout: {
28
+ tile: 'treemapBinary',
29
+ paddingInner: 2
30
+ },
31
+ encode: {
32
+ value: 'value'
33
+ },
34
+ style: {
35
+ fillOpacity: 0.8,
36
+ labelFontSize: 10
37
+ },
38
+ tooltip: false,
39
+ legend: false,
40
+ animate: false
41
+ });
42
+ case 3:
43
+ return _context.abrupt("return", _context.sent);
44
+ case 4:
45
+ case "end":
46
+ return _context.stop();
47
+ }
48
+ }, _callee);
49
+ }));
50
+ return _Treemap.apply(this, arguments);
51
+ }
@@ -0,0 +1,30 @@
1
+ import { type AreaProps, type BarProps, type ColumnProps, type DualAxesProps, type FishboneDiagramProps, type FlowDiagramProps, type HistogramProps, type LineProps, type MindMapProps, type NetworkGraphProps, type PieProps, type RadarProps, type ScatterProps, type TreemapProps, type WordCloudProps } from '../export';
2
+ type ChartConfigMap = {
3
+ line: LineProps;
4
+ column: ColumnProps;
5
+ pie: PieProps;
6
+ area: AreaProps;
7
+ bar: BarProps;
8
+ histogram: HistogramProps;
9
+ scatter: ScatterProps;
10
+ treemap: TreemapProps;
11
+ radar: RadarProps;
12
+ 'dual-axes': DualAxesProps;
13
+ 'word-cloud': WordCloudProps;
14
+ 'mind-map': MindMapProps;
15
+ 'network-graph': NetworkGraphProps;
16
+ 'flow-diagram': FlowDiagramProps;
17
+ 'fishbone-diagram': FishboneDiagramProps;
18
+ };
19
+ export type ChartType = keyof ChartConfigMap;
20
+ export interface BaseChartConfig {
21
+ type: ChartType;
22
+ width: number;
23
+ height: number;
24
+ }
25
+ export type Options = {
26
+ [K in ChartType]: BaseChartConfig & {
27
+ type: K;
28
+ } & ChartConfigMap[K];
29
+ }[ChartType];
30
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { type WordCloudProps } from '../export';
2
+ import { type BaseChartConfig } from './type';
3
+ export type WordCloudOptions = BaseChartConfig & {
4
+ type: 'word-cloud';
5
+ } & WordCloudProps;
6
+ export declare function WordCloud(options: WordCloudOptions): Promise<import("@antv/g2-ssr").Chart>;
@@ -0,0 +1,40 @@
1
+ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
3
+ import { createChart } from '@antv/g2-ssr';
4
+ export function WordCloud(_x) {
5
+ return _WordCloud.apply(this, arguments);
6
+ }
7
+ function _WordCloud() {
8
+ _WordCloud = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(options) {
9
+ var data, title, width, height;
10
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ data = options.data, title = options.title, width = options.width, height = options.height;
14
+ _context.next = 3;
15
+ return createChart({
16
+ type: 'wordCloud',
17
+ layout: {
18
+ fontSize: [8, 42]
19
+ },
20
+ title: title,
21
+ data: data,
22
+ width: width,
23
+ height: height,
24
+ encode: {
25
+ text: 'text',
26
+ color: 'text',
27
+ value: 'value'
28
+ },
29
+ legend: false
30
+ });
31
+ case 3:
32
+ return _context.abrupt("return", _context.sent);
33
+ case 4:
34
+ case "end":
35
+ return _context.stop();
36
+ }
37
+ }, _callee);
38
+ }));
39
+ return _WordCloud.apply(this, arguments);
40
+ }
@@ -1,2 +1,2 @@
1
- declare const _default: "0.4.7";
1
+ declare const _default: "0.5.0-beta.0";
2
2
  export default _default;
@@ -1 +1 @@
1
- export default '0.4.7';
1
+ export default '0.5.0-beta.0';