File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change
1
+ import { DataSet } from "vis-data" ;
2
+ import { Node as VisNode , Edge as VisEdge } from "vis-network" ;
3
+ import { Node as Neo4jNode , Relationship as Neo4jRelationship } from "neo4j-driver" ;
4
+
1
5
export const NEOVIS_DEFAULT_CONFIG : unique symbol ;
2
6
3
7
export interface ILabelConfig {
@@ -35,10 +39,18 @@ export interface INeovisConfig {
35
39
trust ?: "TRUST_ALL_CERTIFICATES" | "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES" ;
36
40
}
37
41
42
+ export interface INode extends VisNode {
43
+ raw : Neo4jNode
44
+ }
45
+
46
+ export interface IEdge extends VisEdge {
47
+ raw : Neo4jRelationship
48
+ }
49
+
38
50
declare class Neovis {
39
- nodes : any ;
40
- edges : any ;
41
51
constructor ( config : INeovisConfig ) ;
52
+ get nodes ( ) : DataSet < INode > ;
53
+ get edges ( ) : DataSet < IEdge > ;
42
54
render ( ) : void ;
43
55
clearNetwork ( ) : void ;
44
56
registerOnEvent ( eventType : string , handler : ( event : any ) => void ) : void ;
Original file line number Diff line number Diff line change 60
60
"dependencies" : {
61
61
"@babel/runtime-corejs3" : " ^7.8.4" ,
62
62
"neo4j-driver" : " ^4.1.0" ,
63
+ "vis-data" : " ^7.0.0" ,
63
64
"vis-network" : " ^7.3.5"
64
65
},
65
66
"jest" : {
Original file line number Diff line number Diff line change 6475
6475
core-util-is "1.0.2"
6476
6476
extsprintf "^1.2.0"
6477
6477
6478
+ vis-data@^7.0.0 :
6479
+ version "7.0.0"
6480
+ resolved "https://registry.yarnpkg.com/vis-data/-/vis-data-7.0.0.tgz#71ff8ec06e4d0b99f1c8cdecfdf97309eb4562cf"
6481
+ integrity sha512-qKpyAQ9UMT0QygLbCulgabKkgfo8aVkuWSqhvEiaah/iy/Dvj17iMFChUU+UIioorWlweXcp5ziXoMLIl7hTAg==
6482
+
6478
6483
vis-network@^7.3.5 :
6479
6484
version "7.10.2"
6480
6485
resolved "https://registry.yarnpkg.com/vis-network/-/vis-network-7.10.2.tgz#b318f1907cf006d9640c4c31a262e0782405a3cf"
You can’t perform that action at this time.
0 commit comments