index.d.ts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. export declare const version = "2.4.31";
  2. import * as G2 from '@antv/g2';
  3. /** 开放一些通用的 adaptor 通道方法,实验阶段:不保证稳定性 */
  4. import { animation, annotation, interaction, legend, scale, theme, tooltip } from './adaptor/common';
  5. import { registerLocale } from './core/locale';
  6. /** 各个 geometry 的 adaptor,可以让开发者更快的构造图形 */
  7. export { area, interval, line, point, polygon, schema } from './adaptor/geometries';
  8. export type { AreaGeometryOptions, IntervalGeometryOptions, LineGeometryOptions, PointGeometryOptions, PolygonGeometryOptions, SchemaGeometryOptions, } from './adaptor/geometries';
  9. /** Adaptor 及其参数的类型定义 */
  10. export type { Adaptor, Params } from './core/adaptor';
  11. /** 全局变量 */
  12. export { setGlobal } from './core/global';
  13. /** G2Plot 的 Plot 基类 */
  14. export { Plot } from './core/plot';
  15. /** 对于没有开发完成的图表,可以暂时先放到 Lab 下面,先做体验,稳定后放到根 export */
  16. export { Lab } from './lab';
  17. export { Area } from './plots/area';
  18. export type { AreaOptions } from './plots/area';
  19. export { Bar } from './plots/bar';
  20. export type { BarOptions } from './plots/bar';
  21. export { BidirectionalBar } from './plots/bidirectional-bar';
  22. export type { BidirectionalBarOptions } from './plots/bidirectional-bar';
  23. export { Box } from './plots/box';
  24. export type { BoxOptions } from './plots/box';
  25. export { Bullet } from './plots/bullet';
  26. export type { BulletOptions } from './plots/bullet';
  27. export { Chord } from './plots/chord';
  28. export type { ChordOptions } from './plots/chord';
  29. export { CirclePacking } from './plots/circle-packing';
  30. export type { CirclePackingOptions } from './plots/circle-packing';
  31. export { Column } from './plots/column';
  32. export type { ColumnOptions } from './plots/column';
  33. export { DualAxes } from './plots/dual-axes';
  34. export type { DualAxesOptions } from './plots/dual-axes';
  35. export { Facet } from './plots/facet';
  36. export type { FacetOptions } from './plots/facet';
  37. export { Funnel, FUNNEL_CONVERSATION_FIELD } from './plots/funnel';
  38. export type { FunnelOptions } from './plots/funnel';
  39. export { Gauge } from './plots/gauge';
  40. export type { GaugeOptions } from './plots/gauge';
  41. export { Heatmap } from './plots/heatmap';
  42. export type { HeatmapOptions } from './plots/heatmap';
  43. export { Histogram } from './plots/histogram';
  44. export type { HistogramOptions } from './plots/histogram';
  45. export { Line } from './plots/line';
  46. export type { LineOptions } from './plots/line';
  47. export { addWaterWave, Liquid } from './plots/liquid';
  48. export type { LiquidOptions } from './plots/liquid';
  49. export { Mix as Mix, Mix as MultiView } from './plots/mix';
  50. export type { MixOptions, MixOptions as MultiViewOptions } from './plots/mix';
  51. export { Pie } from './plots/pie';
  52. export type { PieOptions } from './plots/pie';
  53. export { Progress } from './plots/progress';
  54. export type { ProgressOptions } from './plots/progress';
  55. export { Radar } from './plots/radar';
  56. export type { RadarOptions } from './plots/radar';
  57. export { RadialBar } from './plots/radial-bar';
  58. export type { RadialBarOptions } from './plots/radial-bar';
  59. export { RingProgress } from './plots/ring-progress';
  60. export type { RingProgressOptions } from './plots/ring-progress';
  61. export { Rose } from './plots/rose';
  62. export type { RoseOptions } from './plots/rose';
  63. export { Sankey } from './plots/sankey';
  64. export type { SankeyOptions } from './plots/sankey';
  65. export { Scatter } from './plots/scatter';
  66. export type { ScatterOptions } from './plots/scatter';
  67. export { Stock } from './plots/stock';
  68. export type { StockOptions } from './plots/stock';
  69. export { Sunburst } from './plots/sunburst';
  70. export type { SunburstOptions } from './plots/sunburst';
  71. export { TinyArea } from './plots/tiny-area';
  72. export type { TinyAreaOptions } from './plots/tiny-area';
  73. export { TinyColumn } from './plots/tiny-column';
  74. export type { TinyColumnOptions } from './plots/tiny-column';
  75. export { TinyLine } from './plots/tiny-line';
  76. export type { TinyLineOptions } from './plots/tiny-line';
  77. export { Treemap } from './plots/treemap';
  78. export type { TreemapOptions } from './plots/treemap';
  79. export { Venn } from './plots/venn';
  80. export type { VennOptions } from './plots/venn';
  81. export { Violin } from './plots/violin';
  82. export type { ViolinOptions } from './plots/violin';
  83. export { Waterfall } from './plots/waterfall';
  84. export type { WaterfallOptions } from './plots/waterfall';
  85. export { WordCloud } from './plots/word-cloud';
  86. export type { WordCloudOptions } from './plots/word-cloud';
  87. /** 所有开放图表都使用 G2Plot.P 作为入口开发,理论上官方的所有图表都可以走 G2Plot.P 的入口(暂时不处理) */
  88. export { P } from './plugin';
  89. export * from './types';
  90. /** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */
  91. export { flow, measureTextWidth } from './utils';
  92. /** 开放 getCanvasPatterng 方法 */
  93. export { getCanvasPattern } from './utils/pattern';
  94. export { G2 };
  95. /** 透出 国际化 工具函数,便于使用 */
  96. export { registerLocale };
  97. export declare const adaptors: {
  98. scale: typeof scale;
  99. legend: typeof legend;
  100. tooltip: typeof tooltip;
  101. annotation: typeof annotation;
  102. interaction: typeof interaction;
  103. theme: typeof theme;
  104. animation: typeof animation;
  105. };