-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
36cccbb
commit f59da1c
Showing
1 changed file
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |