File tree Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ <h1>Selected Nodes</h1>
54
54
< th > Score</ th >
55
55
< th > Frequency</ th >
56
56
< th > Spread</ th >
57
+ < th > Relation</ th >
58
+ < th > Parent</ th >
57
59
</ tr >
58
60
</ thead >
59
61
< tbody >
Original file line number Diff line number Diff line change @@ -12,12 +12,16 @@ onSelectionUpdate((selection) => {
12
12
table . textContent = "" ;
13
13
for ( let i = 0 ; i < data . length ; i ++ ) {
14
14
let row = table . insertRow ( i ) ,
15
- node = data [ i ] ;
15
+ node = data [ i ] ,
16
+ c ;
16
17
row . insertCell ( 0 ) . textContent = node . id ;
17
18
row . insertCell ( 1 ) . textContent = node . label ;
18
19
row . insertCell ( 2 ) . textContent = node . entities [ 0 ] . score ;
19
20
row . insertCell ( 3 ) . textContent = node . entities [ 0 ] . frequency ;
20
21
row . insertCell ( 4 ) . textContent = node . entities [ 0 ] . spread ;
22
+ ( c = row . insertCell ( 5 ) ) . textContent = node . edgeType || "?" ;
23
+ c . className = `${ node . edgeType } Item` ;
24
+ row . insertCell ( 6 ) . textContent = ( node . parent || { label : "root" } ) . label || "?" ;
21
25
}
22
26
} ) ;
23
27
Original file line number Diff line number Diff line change @@ -28,6 +28,18 @@ table {
28
28
29
29
}
30
30
31
+ .relatedItem {
32
+ color : $relatedColor ;
33
+ }
34
+
35
+ .similarItem {
36
+ color : $similarColor ;
37
+ }
38
+
39
+ .otherItem , .undefinedItem {
40
+ color : $otherColor ;
41
+ }
42
+
31
43
input [type = text ], input [type = number ] {
32
44
border : 0 ;
33
45
border-bottom : 1px solid gray ;
Original file line number Diff line number Diff line change @@ -6,5 +6,9 @@ $colorA: #02ad8b;
6
6
$colorB : #e08f00 ;
7
7
$colorC : #4c79c1 ;
8
8
9
+ $relatedColor : #ffb840 ;
10
+ $similarColor : #7ca1ff ;
11
+ $otherColor : red ;
12
+
9
13
$zIndexInterface : 100 ;
10
14
$zIndexOnTop : 200 ;
Original file line number Diff line number Diff line change 1
1
@import " mixins" ;
2
+ @import " const" ;
2
3
3
4
#graph {
4
5
10
11
11
12
.links line {
12
13
& .similar {
13
- stroke : #7ca1ff ;
14
+ stroke : $similarColor ;
14
15
}
15
16
& .related {
16
- stroke : #ffb840 ;
17
+ stroke : $relatedColor ;
17
18
}
18
19
& .other {
19
20
stroke : #bbb ;
27
28
circle {
28
29
stroke : #fff ;
29
30
stroke-width : 1px ;
30
- fill : red ;
31
+ fill : $otherColor ;
31
32
}
32
33
33
34
& .entity circle {
34
- fill : #7ca1ff ;
35
+ fill : $similarColor ;
35
36
}
36
37
37
38
& .folder circle {
43
44
}
44
45
45
46
& .root circle {
46
- fill : #ffb840 ;
47
+ fill : $relatedColor ;
47
48
}
48
49
49
50
text {
You can’t perform that action at this time.
0 commit comments