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
ce953b1d
Commit
ce953b1d
authored
Jun 14, 2021
by
Jean-Clement Gallardo
Browse files
improve path for two values (2)
parent
decba030
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphFlux.js
View file @
ce953b1d
...
...
@@ -905,13 +905,19 @@ metExploreD3.GraphFlux = {
if
(
firstPointX
<
startX
){
lastPointX
=
endX
-
(
metaboliteStyle
.
getWidth
()
/
2
)
+
((
fluxValue
*
0.01
));
beforeLastPointX
=
lastPointX
-
5
;
beforeLastPointY
=
beforeLastPointY
-
(
shiftValue
*
2
);
lastPointY
=
lastPointY
-
(
shiftValue
*
2
);
}
else
{
lastPointX
=
endX
+
(
metaboliteStyle
.
getWidth
()
/
2
)
-
((
fluxValue
*
0.01
));
beforeLastPointX
=
lastPointX
+
5
;
beforeLastPointY
=
beforeLastPointY
-
(
shiftValue
*
2
);
lastPointY
=
lastPointY
-
(
shiftValue
*
2
);
}
var
control2X
=
controlX
;
var
control2Y
=
endY
;
controlX
=
controlX
+
shiftValue
;
var
control2X
=
controlX
+
shiftValue
;
var
control2Y
=
endY
-
shiftValue
;
controlY
=
controlY
-
shiftValue
;
var
y1
=
beforeLastPointY
+
2
;
var
y2
=
beforeLastPointY
-
2
;
var
yMo
=
(
lastPointY
+
beforeLastPointY
)
/
2
...
...
@@ -1550,13 +1556,19 @@ metExploreD3.GraphFlux = {
if
(
firstPointX
<
startX
){
lastPointX
=
endX
-
(
metaboliteStyle
.
getWidth
()
/
2
);
beforeLastPointX
=
lastPointX
-
5
;
beforeLastPointY
=
beforeLastPointY
-
(
shiftValue
*
2
);
lastPointY
=
lastPointY
-
(
shiftValue
*
2
);
}
else
{
lastPointX
=
endX
+
(
metaboliteStyle
.
getWidth
()
/
2
);
beforeLastPointX
=
lastPointX
+
5
;
beforeLastPointY
=
beforeLastPointY
-
(
shiftValue
*
2
);
lastPointY
=
lastPointY
-
(
shiftValue
*
2
);
}
var
control2X
=
controlX
;
var
control2Y
=
endY
;
controlX
=
controlX
+
shiftValue
;
var
control2X
=
controlX
+
shiftValue
;
var
control2Y
=
endY
-
shiftValue
;
controlY
=
controlY
-
shiftValue
;
path
=
"
M
"
+
startX
+
"
,
"
+
startY
+
"
L
"
+
firstPointX
+
"
,
"
+
firstPointY
+
"
C
"
+
controlX
+
"
,
"
+
controlY
+
"
,
"
+
control2X
+
"
,
"
+
control2Y
+
"
,
"
+
beforeLastPointX
+
"
,
"
+
beforeLastPointY
+
...
...
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