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
9b13aefb
Commit
9b13aefb
authored
Mar 23, 2020
by
maxchaza
Browse files
Remove reduction of functional programing (=>)
parent
c5a62971
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
9b13aefb
...
...
@@ -34,3 +34,4 @@ node_modules/
package-lock\.json
sencha-error-*
docs/
app.json
View file @
9b13aefb
...
...
@@ -7,7 +7,7 @@
/**
*
The
version
of
the
application.
*/
"version"
:
"3.0.1
3
"
,
"version"
:
"3.0.1
4
"
,
/**
*
The
relative
path
to
the
application's
markup
file
(html
,
jsp
,
asp
,
etc.).
...
...
app/view/form/label/labelController.js
View file @
9b13aefb
...
...
@@ -20,7 +20,7 @@ Ext.define('metExploreViz.view.form.label.LabelController', {
var
session
=
_metExploreViz
.
getSessionById
(
'
viz
'
);
var
metabKeys
;
metabKeys
=
Object
.
keys
(
session
.
getD3Data
().
getNodes
().
filter
(
n
=>
n
.
getBiologicalType
()
===
view
.
aStyleFormParent
.
biologicalType
)
[
0
]);
metabKeys
=
Object
.
keys
(
session
.
getD3Data
().
getNodes
().
filter
(
function
(
n
)
{
return
n
.
getBiologicalType
()
===
view
.
aStyleFormParent
.
biologicalType
[
0
]
;})
);
metabKeys
=
metabKeys
.
filter
(
function
(
key
){
return
key
!==
"
isSideCompound
"
&&
key
!==
"
reactionReversibility
"
&&
key
!==
"
reactionReversibility
"
&&
key
!==
"
selected
"
&&
key
!==
"
duplicated
"
&&
key
!==
"
labelVisible
"
&&
...
...
app/view/form/selectMappingForExtraction/SelectMappingForExtractionController.js
View file @
9b13aefb
...
...
@@ -40,9 +40,11 @@ Ext.define('metExploreViz.view.form.selectMappingForExtraction.SelectMappingForE
.
filter
(
function
(
node
){
return
node
.
mappingDatas
.
length
!==
0
;})
.
filter
(
function
(
node
)
{
return
node
.
getMappingDatas
()
.
filter
(
map
=>
selectedMappings
.
includes
(
map
.
getMappingName
())).
length
!==
0
;
.
filter
(
function
(
map
)
{
return
selectedMappings
.
includes
(
map
.
getMappingName
())
;
}
).
length
!==
0
;
})
.
map
(
node
=>
node
.
getId
());
.
map
(
function
(
node
)
{
return
node
.
getId
();
});
metExploreD3
.
GraphFunction
.
keepOnlySubnetwork
(
nodesToLinks
);
}
...
...
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