diff --git a/packages/pc/src/index.ts b/packages/pc/src/index.ts index 8289135824..d3a22c4d59 100644 --- a/packages/pc/src/index.ts +++ b/packages/pc/src/index.ts @@ -7,17 +7,17 @@ import { Marker, Shape, } from '@antv/g6-core'; -import './element'; -import './behavior'; +import { IGroup, ShapeBase as IShape, ICanvas } from '@antv/g-base'; +import * as Algorithm from '@antv/algorithm'; import Graph from './graph/graph'; import TreeGraph from './graph/tree-graph'; import { Layout, registerLayout } from './layout'; import Global from './global'; import Util from './util'; import Plugin from './plugin'; -import * as Algorithm from '@antv/algorithm'; +import './element'; +import './behavior'; -// const registerLayout = Layout.registerLayout; const Minimap = Plugin.Minimap; const Grid = Plugin.Grid; const Bundling = Plugin.Bundling; @@ -53,6 +53,10 @@ export { Arrow, Marker, Shape, + // 对外包括 G-Base 的几个类型定义 + ICanvas, + IGroup, + IShape, }; export default {