Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
metexplore
MetExploreViz
Commits
5b4ba903
Commit
5b4ba903
authored
Apr 29, 2021
by
Jean-Clement Gallardo
Browse files
delete condition nbNodes<1000
parent
18fdbb50
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphUtils.js
View file @
5b4ba903
...
...
@@ -633,7 +633,7 @@ metExploreD3.GraphUtils = {
d3Clone
.
selectAll
(
"
.hide
"
).
remove
();
var
nbNodes
=
d3Clone
.
select
(
"
#graphComponent
"
).
selectAll
(
"
g.node
"
).
data
().
length
;
if
(
nbNodes
<
1000
){
if
(
nbNodes
){
d3Clone
.
select
(
"
#graphComponent
"
).
selectAll
(
"
g.node
"
)
.
select
(
"
.structure_metabolite
"
)
.
each
(
function
(){
...
...
@@ -1814,4 +1814,4 @@ metExploreD3.GraphUtils = {
String
.
prototype
.
isEmpty
=
function
()
{
return
(
!
this
.
trim
());
};
\ No newline at end of file
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment