Skip to content

Commit

Permalink
feat(graphin):adjust export file
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 10, 2021
1 parent 36cccbb commit f59da1c
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions packages/graphin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
import Graphin from './Graphin';
import GraphinContext from './GraphinContext';
import GraphinContext, { GraphinContextType } from './GraphinContext';
import Utils from './utils';
import Layout from './layout';

import Behaviors from './behaviors';
import registerGraphinForce from './layout/inner/registerGraphinForce';
import registerRenderLayout from './layout/inner/registerRenderLayout';
import { registerGraphinCircle } from './shape';

/** 注册 Graphin force 布局 */
registerGraphinForce();
/** 注册 Graphin render 布局 */
registerRenderLayout();
/** 注册 Graphin Circle Node */
registerGraphinCircle();

/** export */
export default Graphin;
export { Utils, Layout, GraphinContext, Behaviors };
/** export type */
export { GraphinContextType };
export {
/** G6类抛出去 */
/** export G6 */
default as G6,
/** 外部用户需要断言的 G6 类型 */
/** export G6 Type */
Graph,
IG6GraphEvent,
GraphData,
TreeGraphData,
NodeConfig,
EdgeConfig,
} from '@antv/g6';

export default Graphin;
export { Utils, Layout, GraphinContext, Behaviors };

export interface GraphEvent extends MouseEvent {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
item: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
target: any;
}

/** 注册 Graphin force 布局 */
registerGraphinForce();
/** 注册 Graphin render 布局 */
registerRenderLayout();

/** 注册 Graphin Circle Node */
registerGraphinCircle();

0 comments on commit f59da1c

Please sign in to comment.