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
5c8b6302
Commit
5c8b6302
authored
Apr 09, 2021
by
JC
Browse files
hotfix graphlink
parent
7f0d6c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/lib/functions/GraphLink.js
View file @
5c8b6302
...
...
@@ -139,8 +139,8 @@ metExploreD3.GraphLink = {
var
largeurNoeudT
=
(
rTW
<
rTH
)
?
rT
=
rTW
:
rt
=
rTH
;
}
else
{
var
rTW
=
(
Math
.
abs
(
d
)
*
source
.
getSvgWidth
()
/
2
)
/
Math
.
abs
(
dX
);
var
rTH
=
(
Math
.
abs
(
d
)
*
source
.
getSvgHeight
()
/
2
)
/
Math
.
abs
(
dY
);
var
rTW
=
(
Math
.
abs
(
d
)
*
target
.
getSvgWidth
()
/
2
)
/
Math
.
abs
(
dX
);
var
rTH
=
(
Math
.
abs
(
d
)
*
target
.
getSvgHeight
()
/
2
)
/
Math
.
abs
(
dY
);
var
largeurNoeudT
=
(
rTW
<
rTH
)
?
rT
=
rTW
:
rt
=
rTH
;
}
var
heightArrow
=
5
;
...
...
@@ -183,8 +183,8 @@ metExploreD3.GraphLink = {
var
largeurNoeudT
=
(
rTW
<
rTH
)
?
rT
=
rTW
:
rt
=
rTH
;
}
else
{
var
rTW
=
(
Math
.
abs
(
d
)
*
source
.
getSvgWidth
()
/
2
)
/
Math
.
abs
(
dX
);
var
rTH
=
(
Math
.
abs
(
d
)
*
source
.
getSvgHeight
()
/
2
)
/
Math
.
abs
(
dY
);
var
rTW
=
(
Math
.
abs
(
d
)
*
target
.
getSvgWidth
()
/
2
)
/
Math
.
abs
(
dX
);
var
rTH
=
(
Math
.
abs
(
d
)
*
target
.
getSvgHeight
()
/
2
)
/
Math
.
abs
(
dY
);
var
largeurNoeudT
=
(
rTW
<
rTH
)
?
rT
=
rTW
:
rt
=
rTH
;
}
...
...
@@ -1289,4 +1289,4 @@ metExploreD3.GraphLink = {
removeReactionLinks
:
function
()
{
d3
.
selectAll
(
"
path.link.reaction
"
).
remove
();
}
};
\ 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