import { edgeAttributes, NodeAttributes } from '../../types'; import NodeList from '../../classes/nodeList'; import EdgeList from '../../classes/edgeList'; declare type PartialObject = { [P in keyof T]?: T[P] | undefined; }; /** * 添加点数据 * @param that: galaxyvis对象 * @param nodeInfo: 点属性数据 * @returns */ export declare const graphAddNode: (that: any, nodeInfo: NodeAttributes) => any; /** * 添加点数据列表 * @param that: galaxyvis对象 * @param nodeInfo: 点属性数据 * @returns */ export declare const graphAddNodes: (that: any, nodes: Array, update?: boolean) => Promise; /** * 添加边数据 * @param that: galaxyvis对象 * @param edgeInfo: 边属性数据 * @returns */ export declare const graphAddEdge: (that: any, edgeInfo: edgeAttributes) => any; /** * 添加边数据 * @param that: galaxyvis对象 * @param edgeInfo: 边属性数据 * @returns */ export declare const graphAddEdges: (that: any, edges: Array, update?: boolean) => Promise; /** * 获取点边数据方法 * @param that: galaxyvis对象 * @param listKey: basicData的key名称 * @param listClass: new的类名称 * @param ids: id数组 * @returns */ export declare const graphGetDatas: (that: any, listKey: string, listClass: any, getHidden: boolean, ids?: string[], getMerge?: boolean) => any; /** * 获取单点或边数据 * @param id: 点或边id * @returns Node: 点对象 */ export declare const graphGetData: (graphId: any, id: string | number, listKey: string, getHidden: boolean) => any; /** * 获取点边数据方法 * @param that: galaxyvis对象 * @returns NodeList: 点列表对象 */ export declare const graphGetSelectedNodes: (that: any) => NodeList; /** * 获取未选中点 * @param that * @returns */ export declare const graphGetNonSelectedNodes: (that: any) => NodeList; /** * 获取点边数据方法 * @param that: galaxyvis对象 * @returns NodeList: 点列表对象 */ export declare const graphGetSelectedEdges: (that: any) => EdgeList; /** * 获取未选中边 * @param that * @returns */ export declare const graphGetNonSelectedEdges: (that: any) => EdgeList; /** * 删除点 * @param that * @param nodeId * @param isReFlash */ export declare const graphRemoveNode: (that: any, nodeId: string, isReFlash: boolean) => Promise; /** * 删除多点 * @param that * @param nodes * @returns */ export declare const graphRemoveNodes: (that: any, nodes: string[]) => Promise; /** * 删除边 * @param that * @param edgeId * @param isReFlash */ export declare const graphRemoveEdge: (that: any, edgeId: string, force: boolean, isReFlash: boolean) => Promise; /** * 删除多条边 * @param that * @param edges * @returns */ export declare const graphRemoveEdges: (that: any, edges: string[], force?: boolean) => Promise; /** * 添加数据 * @param that * @param RawGraph * @returns */ export declare const graphAddGraph: (that: any, RawGraph: PartialObject, needFresh?: boolean) => Promise; /** * 清空图数据 * @param destory = true 是否销毁实例 * @returns */ export declare const graphClearGraph: (graph: any, needClear?: boolean, destory?: boolean) => void; /** * 销毁graph对象 * @param that * @returns */ export declare const graphDestory: (that: any) => Promise; /** * 返回render的类型 * @returns */ export declare const graphGetRenderType: (that: any) => any; export {};