@kgdata/visualgraph
Version:
visualgraph
52 lines (51 loc) • 1.33 kB
TypeScript
import './index.less';
declare type TypesCountProps = Record<string, {
value: number;
name: string;
}>;
declare type ConfigProps = {
nodes: {
size: number;
force: number;
fontSize: number;
nodeStrength: number;
};
edges: {
isShowLink: boolean;
isShow: boolean;
fontSize: number;
};
property: boolean;
propertyIsNull: boolean;
isHotAnalysis: boolean;
activeTab: string;
};
declare const _default: ({ countTypes, options, checked, handleCheck, handleChangeLayout, layout, config, handleChangeGraphConfig, }: {
countTypes: {
nodes: TypesCountProps;
edges: TypesCountProps;
};
options: {
nodes: {
label: string;
value: string;
}[];
edges: {
label: string;
value: string;
}[];
};
checked: {
nodes: string[];
edges: string[];
};
handleCheck: (type: 'nodes' | 'edges', data: boolean | {
value: boolean;
id?: string;
}) => void;
handleChangeLayout: (value: string) => void;
layout: string;
config: ConfigProps;
handleChangeGraphConfig: (config: ConfigProps) => void;
}) => JSX.Element;
export default _default;