@@ -41,6 +41,7 @@ var hivtrace_cluster_network_graph = function (
41
41
// [OPT] attributes : A JSON object with mapped node attributes
42
42
43
43
// unpack compact JSON if needed
44
+
44
45
if ( json . Settings && json . Settings . compact_json ) {
45
46
network . unpack_compact_json ( json ) ;
46
47
}
@@ -67,7 +68,7 @@ var hivtrace_cluster_network_graph = function (
67
68
network . normalize_node_attributes ( json ) ;
68
69
network . ensure_node_attributes_exist ( json ) ;
69
70
70
- /** SLKP 20190902: somehow our networks have malformed edges! This will remove them */
71
+ /** SLKP 20190902: somehow some of our networks have malformed edges! This will remove them */
71
72
json . Edges = _ . filter ( json . Edges , ( e ) => "source" in e && "target" in e ) ;
72
73
73
74
var self = new HTX . HIVTxNetwork ( json ) ;
@@ -100,8 +101,7 @@ var hivtrace_cluster_network_graph = function (
100
101
self . ww = network . check_network_option (
101
102
options ,
102
103
"width" ,
103
- d3 . select ( parent_container ) . property ( "clientWidth" ) ,
104
- null
104
+ d3 . select ( parent_container ) . property ( "clientWidth" )
105
105
) ;
106
106
107
107
self . container = network_container ;
@@ -127,27 +127,26 @@ var hivtrace_cluster_network_graph = function (
127
127
self . dom_prefix = network . check_network_option (
128
128
options ,
129
129
"prefix" ,
130
- "hiv-trace" ,
131
- null
130
+ "hiv-trace"
132
131
) ;
133
132
self . extra_cluster_table_columns = network . check_network_option (
134
133
options ,
135
134
"cluster-table-columns" ,
136
- null ,
137
135
null
138
136
) ;
139
137
140
138
self . subcluster_table = null ;
139
+
141
140
self . isPrimaryGraph = network . check_network_option (
142
141
options ,
143
142
"secondary" ,
144
143
true ,
145
144
false
146
145
) ;
146
+
147
147
self . parent_graph_object = network . check_network_option (
148
148
options ,
149
149
"parent_graph" ,
150
- null ,
151
150
null
152
151
) ;
153
152
@@ -159,8 +158,7 @@ var hivtrace_cluster_network_graph = function (
159
158
self . today = network . check_network_option (
160
159
options ,
161
160
"today" ,
162
- timeDateUtil . getCurrentDate ( ) ,
163
- null
161
+ timeDateUtil . getCurrentDate ( )
164
162
) ;
165
163
}
166
164
0 commit comments