index.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. export var version = '2.4.31';
  2. // G2 自定义能力透出
  3. import * as G2 from '@antv/g2';
  4. /** 开放一些通用的 adaptor 通道方法,实验阶段:不保证稳定性 */
  5. import { animation, annotation, interaction, legend, scale, theme, tooltip } from './adaptor/common';
  6. // 国际化处理
  7. import { registerLocale } from './core/locale';
  8. import { EN_US_LOCALE } from './locales/en_US';
  9. import { ZH_CN_LOCALE } from './locales/zh_CN';
  10. /** 各个 geometry 的 adaptor,可以让开发者更快的构造图形 */
  11. export { area, interval, line, point, polygon, schema } from './adaptor/geometries';
  12. /** 全局变量 */
  13. export { setGlobal } from './core/global';
  14. /** G2Plot 的 Plot 基类 */
  15. export { Plot } from './core/plot';
  16. /** 对于没有开发完成的图表,可以暂时先放到 Lab 下面,先做体验,稳定后放到根 export */
  17. export { Lab } from './lab';
  18. // 面积图及类型定义 | author by [hustcc](https://github.com/hustcc)
  19. export { Area } from './plots/area';
  20. // 条形图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ)
  21. export { Bar } from './plots/bar';
  22. // 对称条形图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
  23. export { BidirectionalBar } from './plots/bidirectional-bar';
  24. // 箱线图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ), [visiky](https://github.com/visiky)
  25. export { Box } from './plots/box';
  26. // 子弹图及类型定义 | author by [arcsin1](https://github.com/arcsin1)
  27. export { Bullet } from './plots/bullet';
  28. // 弦图及类型定义 | author by [MrSmallLiu](https://github.com/MrSmallLiu), [visiky](https://github.com/visiky)
  29. export { Chord } from './plots/chord';
  30. // circle-packing 及类型定义 | author by [visiky](https://github.com/visiky), [Angeli](https://github.com/Angelii)
  31. export { CirclePacking } from './plots/circle-packing';
  32. // 柱形图及类型定义 | author by [zqlu](https://github.com/zqlu)
  33. export { Column } from './plots/column';
  34. // 混合图形 | author by [liuzhenying](https://github.com/liuzhenying)
  35. export { DualAxes } from './plots/dual-axes';
  36. // 分面图及类型定义 | author by [visiky](https://github.com/visiky)
  37. export { Facet } from './plots/facet';
  38. // 漏斗图及类型定义
  39. export { Funnel, FUNNEL_CONVERSATION_FIELD } from './plots/funnel';
  40. // 仪表盘及类型定义 | author by [hustcc](https://github.com/hustcc)
  41. export { Gauge } from './plots/gauge';
  42. // 热力图及类型定义 | author by [jiazhewang](https://github.com/jiazhewang)
  43. export { Heatmap } from './plots/heatmap';
  44. // 直方图及类型定义 | author by [arcsin1](https://github.com/arcsin1), [visiky](https://github.com/visiky)
  45. export { Histogram } from './plots/histogram';
  46. // 折线图及类型定义 | author by [hustcc](https://github.com/hustcc)
  47. export { Line } from './plots/line';
  48. // 水波图及类型定义 | author by [CarisL](https://github.com/CarisL), [hustcc](https://github.com/hustcc), [pearmini](https://github.com/pearmini)
  49. export { addWaterWave, Liquid } from './plots/liquid';
  50. // 已经废弃,更名为 Mix
  51. export { Mix as Mix, Mix as MultiView } from './plots/mix';
  52. // 饼图及类型定义 | author by [visiky](https://github.com/visiky)
  53. export { Pie } from './plots/pie';
  54. // 进度图及类型定义 | author by [connono](https://github.com/connono)
  55. export { Progress } from './plots/progress';
  56. // 雷达图及类型定义 | author by [visiky](https://github.com/visiky)
  57. export { Radar } from './plots/radar';
  58. // 玉珏图 | author by [yujs](https://github.com/yujs) | updated by [visiky](https://github.com/visiky)
  59. export { RadialBar } from './plots/radial-bar';
  60. // 环形进度图及类型定义 | author by [connono](https://github.com/connono)
  61. export { RingProgress } from './plots/ring-progress';
  62. // 玫瑰图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
  63. export { Rose } from './plots/rose';
  64. // 桑基图及类型定义 | author by [hustcc](https://github.com/hustcc)
  65. export { Sankey } from './plots/sankey';
  66. // 散点图及类型定义 | author by [lxfu1](https://github.com/lxfu1)
  67. export { Scatter } from './plots/scatter';
  68. // K线图及类型定义 | author by [jhwong](https://github.com/jinhuiWong), [visiky](https://github.com/visiky)
  69. export { Stock } from './plots/stock';
  70. // 旭日图及类型定义 | author by [lxfu1](https://github.com/lxfu1), [visiky](https://github.com/visiky)
  71. export { Sunburst } from './plots/sunburst';
  72. // 迷你面积图及类型定义 | author by [connono](https://github.com/connono)
  73. export { TinyArea } from './plots/tiny-area';
  74. // 迷你柱形图及类型定义 | author by [connono](https://github.com/connono)
  75. export { TinyColumn } from './plots/tiny-column';
  76. // 迷你折线图及类型定义 | author by [connono](https://github.com/connono)
  77. export { TinyLine } from './plots/tiny-line';
  78. // 矩形树图
  79. export { Treemap } from './plots/treemap';
  80. // 韦恩图及类型定义 | author by [visiky](https://github.com/visiky)
  81. export { Venn } from './plots/venn';
  82. // 小提琴图及类型定义 | author by [YiSiWang](https://github.com/YiSiWang), [visiky](https://github.com/visiky)
  83. export { Violin } from './plots/violin';
  84. // 瀑布图 | author by [visiky](https://github.com/visiky)
  85. export { Waterfall } from './plots/waterfall';
  86. // 词云图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe)
  87. export { WordCloud } from './plots/word-cloud';
  88. // 以下开放自定义图表开发的能力(目前仅仅是孵化中)
  89. /** 所有开放图表都使用 G2Plot.P 作为入口开发,理论上官方的所有图表都可以走 G2Plot.P 的入口(暂时不处理) */
  90. export { P } from './plugin';
  91. // 类型定义导出
  92. export * from './types';
  93. /** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */
  94. export { flow, measureTextWidth } from './utils';
  95. /** 开放 getCanvasPatterng 方法 */
  96. export { getCanvasPattern } from './utils/pattern';
  97. export { G2 };
  98. /** 透出 国际化 工具函数,便于使用 */
  99. export { registerLocale };
  100. /** default locale register */
  101. registerLocale('en-US', EN_US_LOCALE);
  102. registerLocale('zh-CN', ZH_CN_LOCALE);
  103. export var adaptors = { scale: scale, legend: legend, tooltip: tooltip, annotation: annotation, interaction: interaction, theme: theme, animation: animation };
  104. //# sourceMappingURL=index.js.map