export const version = '2.4.21'; // G2 自定义能力透出 import * as G2 from '@antv/g2'; export { G2 }; // 国际化处理 import { registerLocale } from './core/locale'; import { EN_US_LOCALE } from './locales/en_US'; import { ZH_CN_LOCALE } from './locales/zh_CN'; /** default locale register */ registerLocale('en-US', EN_US_LOCALE); registerLocale('zh-CN', ZH_CN_LOCALE); /** 透出 国际化 工具函数,便于使用 */ export { registerLocale }; /** 全局变量 */ export { setGlobal } from './core/global'; /** G2Plot 的 Plot 基类 */ export { Plot } from './core/plot'; /** Adaptor 及其参数的类型定义 */ export type { Adaptor, Params } from './core/adaptor'; // 类型定义导出 export * from './types'; // 折线图及类型定义 | author by [hustcc](https://github.com/hustcc) export { Line } from './plots/line'; export type { LineOptions } from './plots/line'; // 面积图及类型定义 | author by [hustcc](https://github.com/hustcc) export { Area } from './plots/area'; export type { AreaOptions } from './plots/area'; // 柱形图及类型定义 | author by [zqlu](https://github.com/zqlu) export { Column } from './plots/column'; export type { ColumnOptions } from './plots/column'; // 条形图及类型定义 | author by [BBSQQ](https://github.com/BBSQQ) export { Bar } from './plots/bar'; export type { BarOptions } from './plots/bar'; // 饼图及类型定义 | author by [visiky](https://github.com/visiky) export { Pie } from './plots/pie'; export type { PieOptions } from './plots/pie'; // 词云图及类型定义 | author by [zhangzhonghe](https://github.com/zhangzhonghe) export { WordCloud } from './plots/word-cloud'; export type { WordCloudOptions } from './plots/word-cloud'; // 散点图及类型定义 | author by [lxfu1](https://github.com/lxfu1) export { Scatter } from './plots/scatter'; export type { ScatterOptions } from './plots/scatter'; // 雷达图及类型定义 | author by [visiky](https://github.com/visiky) export { Radar } from './plots/radar'; export type { RadarOptions } from './plots/radar'; // 进度图及类型定义 | author by [connono](https://github.com/connono) export { Progress } from './plots/progress'; export type { ProgressOptions } from './plots/progress'; // K线图及类型定义 | author by [jhwong](https://github.com/jinhuiWong), [visiky](https://github.com/visiky) export { Stock } from './plots/stock'; export type { StockOptions } from './plots/stock'; // 漏斗图及类型定义 export { Funnel, FUNNEL_CONVERSATION_FIELD } from './plots/funnel'; export type { FunnelOptions } from './plots/funnel'; // 子弹图及类型定义 | author by [arcsin1](https://github.com/arcsin1) export { Bullet } from './plots/bullet'; export type { BulletOptions } from './plots/bullet'; // 仪表盘及类型定义 | author by [hustcc](https://github.com/hustcc) export { Gauge } from './plots/gauge'; export type { GaugeOptions } from './plots/gauge'; // 玉珏图 | author by [yujs](https://github.com/yujs) | updated by [visiky](https://github.com/visiky) export { RadialBar } from './plots/radial-bar'; export type { RadialBarOptions } from './plots/radial-bar'; // 以下开放自定义图表开发的能力(目前仅仅是孵化中) /** 所有开放图表都使用 G2Plot.P 作为入口开发,理论上官方的所有图表都可以走 G2Plot.P 的入口(暂时不处理) */ export { P } from './plugin'; /** 开放 getCanvasPatterng 方法 */ export { getCanvasPattern } from './utils/pattern'; /** 开发 adaptor 可能会用到的方法或一些工具方法,不强制使用 */ export { flow, measureTextWidth } from './utils'; /** 各个 geometry 的 adaptor,可以让开发者更快的构造图形 */ export { line, interval, area, point, polygon, schema } from './adaptor/geometries'; export type { LineGeometryOptions, IntervalGeometryOptions, AreaGeometryOptions, PointGeometryOptions, PolygonGeometryOptions, SchemaGeometryOptions, } from './adaptor/geometries'; /** 开放一些通用的 adaptor 通道方法,实验阶段:不保证稳定性 */ import { scale, legend, tooltip, annotation, interaction, theme, animation } from './adaptor/common'; export const adaptors = { scale, legend, tooltip, annotation, interaction, theme, animation };