Skip to content
GitLab
Menu
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
ad2447e5
Commit
ad2447e5
authored
Sep 14, 2021
by
Jean-Clement Gallardo
Browse files
manage general style + flux vizu
parent
3c58eef8
Changes
2
Hide whitespace changes
Inline
Side-by-side
app.json
View file @
ad2447e5
...
...
@@ -7,7 +7,7 @@
/**
*
The
version
of
the
application.
*/
"version"
:
"3.1.
2
"
,
"version"
:
"3.1.
3
"
,
/**
*
The
relative
path
to
the
application's
markup
file
(html
,
jsp
,
asp
,
etc.).
...
...
resources/lib/functions/GraphFlux.js
View file @
ad2447e5
...
...
@@ -484,6 +484,7 @@ metExploreD3.GraphFlux = {
curveEdge
:
function
(){
var
panel
=
"
viz
"
;
var
reactionStyle
=
metExploreD3
.
getReactionStyle
();
var
linkStyle
=
metExploreD3
.
getLinkStyle
();
var
reactions
=
d3
.
select
(
"
#
"
+
panel
).
select
(
"
#D3viz
"
).
select
(
"
#graphComponent
"
)
.
selectAll
(
"
g.node
"
)
.
filter
(
function
(
node
){
...
...
@@ -684,6 +685,7 @@ metExploreD3.GraphFlux = {
});
}
if
(
node
.
fluxDirection1
===
undefined
){
var
color
=
linkStyle
.
getStrokeColor
();
enteringLinks
.
each
(
function
(
link
)
{
var
path
;
...
...
@@ -699,9 +701,11 @@ metExploreD3.GraphFlux = {
node
.
axe
=
axe
;
d3
.
select
(
this
).
attr
(
"
d
"
,
path
)
.
attr
(
"
fill
"
,
"
none
"
)
.
attr
(
"
stroke
"
,
color
)
.
classed
(
"
horizontal
"
,
false
)
.
classed
(
"
vertical
"
,
false
)
.
classed
(
axe
,
true
)
.
classed
(
"
fluxstylelink
"
,
true
)
.
style
(
"
opacity
"
,
0.6
)
.
style
(
"
stroke-width
"
,
1
);
});
...
...
@@ -721,9 +725,11 @@ metExploreD3.GraphFlux = {
d3
.
select
(
this
).
attr
(
"
d
"
,
path
)
.
attr
(
"
fill
"
,
"
none
"
)
.
attr
(
"
stroke
"
,
color
)
.
classed
(
"
horizontal
"
,
false
)
.
classed
(
"
vertical
"
,
false
)
.
classed
(
axe
,
true
)
.
classed
(
"
fluxstylelink
"
,
true
)
.
style
(
"
opacity
"
,
0.6
)
.
style
(
"
stroke-width
"
,
1
);
});
...
...
@@ -738,6 +744,7 @@ metExploreD3.GraphFlux = {
*/
curveTwoEdge
:
function
(){
var
reactionStyle
=
metExploreD3
.
getReactionStyle
();
var
linkStyle
=
metExploreD3
.
getLinkStyle
();
var
reactions
=
d3
.
select
(
"
#viz
"
).
select
(
"
#D3viz
"
).
select
(
"
#graphComponent
"
)
.
selectAll
(
"
g.node
"
)
.
filter
(
function
(
node
){
...
...
@@ -1115,6 +1122,7 @@ metExploreD3.GraphFlux = {
});
}
if
(
node
.
fluxDirection1
===
undefined
||
node
.
fluxDirection2
===
undefined
){
var
color
=
linkStyle
.
getStrokeColor
();
enteringLinks
.
each
(
function
(
link
)
{
var
path
;
...
...
@@ -1133,6 +1141,7 @@ metExploreD3.GraphFlux = {
.
classed
(
"
horizontal
"
,
false
)
.
classed
(
"
vertical
"
,
false
)
.
classed
(
axe
,
true
)
.
classed
(
"
fluxstylelink
"
,
true
)
.
style
(
"
opacity
"
,
0.6
)
.
style
(
"
stroke-width
"
,
1
);
});
...
...
@@ -1155,6 +1164,7 @@ metExploreD3.GraphFlux = {
.
classed
(
"
horizontal
"
,
false
)
.
classed
(
"
vertical
"
,
false
)
.
classed
(
axe
,
true
)
.
classed
(
"
fluxstylelink
"
,
true
)
.
style
(
"
opacity
"
,
0.6
)
.
style
(
"
stroke-width
"
,
1
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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