@antv/g2
Version:
the Grammar of Graphics in Javascript
100 lines (91 loc) • 2.05 kB
text/typescript
/* 依赖的模块,在这里统一引入,方便打包优化 */
// G
export {
ICanvas,
IElement,
IGroup,
IShape,
PathCommand,
BBox,
Point,
ShapeAttrs,
Event,
AbstractGroup,
AbstractShape,
} from '@antv/g-base';
// 需要有 G-base 提供 g engine 类型定义
export type IG = any;
// adjust
export { registerAdjust, getAdjust, Adjust } from '@antv/adjust';
// attr
export { getAttribute, Attribute } from '@antv/attr';
export { Color } from '@antv/attr';
// coordinate
export { getCoordinate, registerCoordinate, Coordinate, CoordinateCfg } from '@antv/coord';
// scale
export { getScale, registerScale, Scale, ScaleConfig, Tick } from '@antv/scale';
// component
import {
Annotation,
Axis,
Component,
Crosshair,
Grid,
GroupComponent,
HtmlComponent,
Legend,
Slider,
Tooltip,
Scrollbar,
} from '@antv/component';
export {
CategoryLegendCfg,
CircleAxisCfg,
LineAxisCfg,
GroupComponentCfg,
ListItem,
AxisLineCfg,
AxisTickLineCfg,
AxisSubTickLineCfg,
AxisTitleCfg,
AxisLabelCfg,
GridLineCfg,
LegendMarkerCfg,
LegendTitleCfg,
LegendBackgroundCfg,
LegendItemNameCfg,
LegendItemValueCfg,
LegendPageNavigatorCfg,
ContinueLegendCfg,
ContinueLegendTrackCfg,
ContinueLegendRailCfg,
ContinueLegendLabelCfg,
ContinueLegendHandlerCfg,
CrosshairLineCfg,
CrosshairTextCfg,
CrosshairTextBackgroundCfg,
SliderCfg,
TrendCfg,
EnhancedTextCfg,
LineAnnotationTextCfg,
IComponent,
IList,
} from '@antv/component';
export { HtmlComponent, GroupComponent, Component, Crosshair };
export { Annotation };
// axis
const { Line: LineAxis, Circle: CircleAxis } = Axis;
export { LineAxis, CircleAxis };
// grid
const { Line: LineGrid, Circle: CircleGrid } = Grid;
export { LineGrid, CircleGrid };
// legend
const { Category: CategoryLegend, Continuous: ContinuousLegend } = Legend;
export { CategoryLegend, ContinuousLegend };
// Tooltip
const { Html: HtmlTooltip } = Tooltip;
export { HtmlTooltip };
// Slider
export { Slider };
// Scrollbar
export { Scrollbar };